1 Index: decoder_plugins/ffmpeg/ffmpeg.c
2 ===================================================================
3 --- decoder_plugins/ffmpeg/ffmpeg.c (revisiĆ³n: 2963)
4 +++ decoder_plugins/ffmpeg/ffmpeg.c (copia de trabajo)
6 * FFmpeg/LibAV in use. For some versions this will be caught in
7 * *_find_stream_info() above and misreported as an unfound codec
9 - if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) {
10 + if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) {
11 decoder_error (&data->error, ERROR_FATAL, 0,
12 "The codec is experimental and may damage MOC: %s",
17 set_downmixing (data);
18 - if (data->codec->capabilities & CODEC_CAP_TRUNCATED)
19 - data->enc->flags |= CODEC_FLAG_TRUNCATED;
20 + if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
21 + data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
23 if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
27 data->sample_width = sfmt_Bps (data->fmt);
29 - if (data->codec->capabilities & CODEC_CAP_DELAY)
30 + if (data->codec->capabilities & AV_CODEC_CAP_DELAY)
32 data->seek_broken = is_seek_broken (data);
33 data->timing_broken = is_timing_broken (data->ic);