moc: fix patch's whitespace

This commit is contained in:
Đoàn Trần Công Danh 2022-08-26 23:02:25 +07:00
parent 6757365e01
commit be46c235b7

View file

@ -1,32 +1,31 @@
--- a/decoder_plugins/ffmpeg/ffmpeg.c.orig 2018-05-11 12:48:29.897671514 +0200 --- a/decoder_plugins/ffmpeg/ffmpeg.c
+++ b/decoder_plugins/ffmpeg/ffmpeg.c 2018-05-11 12:50:09.133692416 +0200 +++ b/decoder_plugins/ffmpeg/ffmpeg.c
@@ -984,7 +984,7 @@ @@ -984,7 +984,7 @@ static void *ffmpeg_open (const char *fi
* FFmpeg/LibAV in use. For some versions this will be caught in * FFmpeg/LibAV in use. For some versions this will be caught in
* *_find_stream_info() above and misreported as an unfound codec * *_find_stream_info() above and misreported as an unfound codec
* parameters error. */ * parameters error. */
- if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) { - if (data->codec->capabilities & CODEC_CAP_EXPERIMENTAL) {
+ if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) { + if (data->codec->capabilities & AV_CODEC_CAP_EXPERIMENTAL) {
decoder_error (&data->error, ERROR_FATAL, 0, decoder_error (&data->error, ERROR_FATAL, 0,
"The codec is experimental and may damage MOC: %s", "The codec is experimental and may damage MOC: %s",
data->codec->name); data->codec->name);
@@ -993,8 +993,8 @@ @@ -993,8 +993,8 @@ static void *ffmpeg_open (const char *fi
#endif #endif
set_downmixing (data); set_downmixing (data);
- if (data->codec->capabilities & CODEC_CAP_TRUNCATED) - if (data->codec->capabilities & CODEC_CAP_TRUNCATED)
- data->enc->flags |= CODEC_FLAG_TRUNCATED; - data->enc->flags |= CODEC_FLAG_TRUNCATED;
+ if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED) + if (data->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+ data->enc->flags |= AV_CODEC_FLAG_TRUNCATED; + data->enc->flags |= AV_CODEC_FLAG_TRUNCATED;
#ifdef HAVE_AVCODEC_OPEN2 #ifdef HAVE_AVCODEC_OPEN2
if (avcodec_open2 (data->enc, data->codec, NULL) < 0) if (avcodec_open2 (data->enc, data->codec, NULL) < 0)
@@ -1025,7 +1025,7 @@ @@ -1025,7 +1025,7 @@ static void *ffmpeg_open (const char *fi
data->sample_width = sfmt_Bps (data->fmt); data->sample_width = sfmt_Bps (data->fmt);
- if (data->codec->capabilities & CODEC_CAP_DELAY) - if (data->codec->capabilities & CODEC_CAP_DELAY)
+ if (data->codec->capabilities & AV_CODEC_CAP_DELAY) + if (data->codec->capabilities & AV_CODEC_CAP_DELAY)
data->delay = true; data->delay = true;
data->seek_broken = is_seek_broken (data); data->seek_broken = is_seek_broken (data);
data->timing_broken = is_timing_broken (data->ic); data->timing_broken = is_timing_broken (data->ic);