Fix FTBFS with ffmeg 8.0.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
master
Slávek Banko 3 months ago
parent 28a1bf8d30
commit 3a8c0835aa
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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
avcodec_close( d->audioStream_ctx );
d->audioStream_ctx = NULL;
#endif
d->codec = 0;

Loading…
Cancel
Save