diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-01 08:37:38 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:17 +0000 |
commit | 5870aa911f41349bc815ab697af1753f047a4323 (patch) | |
tree | 7713f0d2b56ad14a5d6de9dde7df96a039dcc194 /community/moc/ffmpeg4.patch | |
parent | 6399b8f024f810d4ab2e555d58722c21948e2281 (diff) |
community/moc: patch for ffmpeg 4
Diffstat (limited to 'community/moc/ffmpeg4.patch')
-rw-r--r-- | community/moc/ffmpeg4.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/community/moc/ffmpeg4.patch b/community/moc/ffmpeg4.patch new file mode 100644 index 00000000000..8ebd9466153 --- /dev/null +++ b/community/moc/ffmpeg4.patch @@ -0,0 +1,34 @@ +Index: a/decoder_plugins/ffmpeg/ffmpeg.c +=================================================================== +--- a/decoder_plugins/ffmpeg/ffmpeg.c (revisiĆ³n: 2963) ++++ b/decoder_plugins/ffmpeg/ffmpeg.c (copia de trabajo) +@@ -697,7 +697,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); +@@ -705,8 +705,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; + + if (avcodec_open2 (data->enc, data->codec, NULL) < 0) + { +@@ -725,7 +725,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); + |