Fix building with latest versions of ffmpeg.

Some years-old deprecated stuff has now been removed.

Correct solution is probably to use valid defines etc. in own code, but
this is more FFMEPG maintainer task (since it also may change how old
FFMPEG we do support...).
This commit is contained in:
2018-05-08 16:00:52 +02:00
parent 43e0e8defa
commit 4e4a93bc45
2 changed files with 41 additions and 1 deletions

View File

@@ -619,7 +619,8 @@ static AVStream *alloc_video_stream(FFMpegContext *context, RenderData *rd, int
c->rc_buffer_aggressivity = 1.0;
#endif
c->me_method = ME_EPZS;
/* Deprecated and not doing anything since July 2015, deleted in recent ffmpeg */
//c->me_method = ME_EPZS;
codec = avcodec_find_encoder(c->codec_id);
if (!codec)