mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
obs-ffmpeg, win-dshow, deps/media-playback: Use recommended API for AVCodecContext
This commit is contained in:
@@ -72,11 +72,7 @@ static bool ffmpeg_image_open_decoder_context(struct ffmpeg_image *info)
|
||||
|
||||
static void ffmpeg_image_free(struct ffmpeg_image *info)
|
||||
{
|
||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(57, 48, 101)
|
||||
avcodec_free_context(&info->decoder_ctx);
|
||||
#else
|
||||
avcodec_close(info->decoder_ctx);
|
||||
#endif
|
||||
avformat_close_input(&info->fmt_ctx);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user