mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix ffmpeg deprecation
This commit is contained in:
parent
720d6076a0
commit
50a4e3213d
@ -339,10 +339,11 @@ FFMpegStream::~FFMpegStream()
|
|||||||
{
|
{
|
||||||
av_frame_free(&frame);
|
av_frame_free(&frame);
|
||||||
|
|
||||||
|
#if (LIBAVCODEC_VERSION_MAJOR < 61 )
|
||||||
|
// deprecated, apparently no longer necessary - avcodec_free_context should suffice
|
||||||
avcodec_close(codecContext);
|
avcodec_close(codecContext);
|
||||||
avcodec_free_context(&codecContext);
|
#endif
|
||||||
|
|
||||||
avcodec_close(codecContext);
|
|
||||||
avcodec_free_context(&codecContext);
|
avcodec_free_context(&codecContext);
|
||||||
|
|
||||||
avformat_close_input(&formatContext);
|
avformat_close_input(&formatContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user