Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
@ -282,10 +282,10 @@ void FFMPEGDecoder::closeFile() {
}
if( d->codec ) {
avcodec_close( d->audioStream_ctx );
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 33, 100)
avcodec_free_context(&d->audioStream_ctx);
#else
d->audioStream_ctx = NULL;
#endif
d->codec = 0;