From 221d7326d2c011917d5498be81ab87780f602371 Mon Sep 17 00:00:00 2001 From: Florian Franzmann Date: Tue, 30 Jan 2018 14:14:40 +0100 Subject: [PATCH] fix build against recent versions of ffmpeg --- decoder_plugins/ffmpeg/ffmpeg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/decoder_plugins/ffmpeg/ffmpeg.c b/decoder_plugins/ffmpeg/ffmpeg.c index 7b90493..bbbe148 100644 --- a/decoder_plugins/ffmpeg/ffmpeg.c +++ b/decoder_plugins/ffmpeg/ffmpeg.c @@ -993,8 +993,8 @@ static void *ffmpeg_open (const char *file) #endif set_downmixing (data); - if (data->codec->capabilities & CODEC_CAP_TRUNCATED) - data->enc->flags |= CODEC_FLAG_TRUNCATED; + if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED) + data->enc->flags |= AV_CODEC_FLAG_TRUNCATED; #ifdef HAVE_AVCODEC_OPEN2 if (avcodec_open2 (data->enc, data->codec, NULL) < 0) @@ -1025,7 +1025,7 @@ static void *ffmpeg_open (const char *file) data->sample_width = sfmt_Bps (data->fmt); - if (data->codec->capabilities & CODEC_CAP_DELAY) + if (data->codec->capabilities & AV_CODEC_CAP_DELAY) data->delay = true; data->seek_broken = is_seek_broken (data); data->timing_broken = is_timing_broken (data->ic); -- 2.15.1