--- decoder_plugins/ffmpeg/ffmpeg.c.orig 2018-04-24 22:21:11.000000000 -0700 +++ decoder_plugins/ffmpeg/ffmpeg.c 2018-04-24 22:21:59.000000000 -0700 @@ -895,7 +895,7 @@ * FFmpeg/LibAV in use. For some versions this will be caught in * *_find_stream_info() above and misreported as an unfound codec * parameters error. */ - if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) { + if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) { decoder_error (&data->error, ERROR_FATAL, 0, "The codec is experimental and may damage MOC: %s", data->codec->name); @@ -903,8 +903,8 @@ } 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) @@ -930,7 +930,7 @@ 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);