102.11.0-1
[arch-packages.git] / moc / trunk / moc-ffmpeg4.patch
blobc1e43a7c2f3e711e91d1ee6a2c553c305d623d74
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)
5 @@ -697,7 +697,7 @@
6 * FFmpeg/LibAV in use. For some versions this will be caught in
7 * *_find_stream_info() above and misreported as an unfound codec
8 * parameters error. */
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",
13 data->codec->name);
14 @@ -705,8 +705,8 @@
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)
25 @@ -725,7 +725,7 @@
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)
31 data->delay = true;
32 data->seek_broken = is_seek_broken (data);
33 data->timing_broken = is_timing_broken (data->ic);