Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60859 from aethelz/moc-refactor
moc: refactor options, add patches
- Loading branch information
Showing
3 changed files
with
917 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Index: decoder_plugins/ffmpeg/ffmpeg.c | ||
=================================================================== | ||
--- /decoder_plugins/ffmpeg/ffmpeg.c (revisión: 2963) | ||
+++ /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); |
Oops, something went wrong.