1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-27 22:49:25 +02:00

Merge pull request #4480 from IvanSavenko/update_prebuilts

Update ffmpeg
This commit is contained in:
Ivan Savenko
2024-08-21 15:57:50 +03:00
committed by GitHub
17 changed files with 159 additions and 35 deletions

View File

@@ -339,10 +339,11 @@ FFMpegStream::~FFMpegStream()
{
av_frame_free(&frame);
#if (LIBAVCODEC_VERSION_MAJOR < 61 )
// deprecated, apparently no longer necessary - avcodec_free_context should suffice
avcodec_close(codecContext);
avcodec_free_context(&codecContext);
#endif
avcodec_close(codecContext);
avcodec_free_context(&codecContext);
avformat_close_input(&formatContext);