[FFmpeg-cvslog] avformat/electronicarts: change non failure return of read_header() to 0
Michael Niedermayer
git at videolan.org
Tue Sep 8 01:26:23 EEST 2020
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Sep 8 00:06:53 2020 +0200| [6a2df7ca26cf31b36facdb14ede9ebeb4bce8773] | committer: Michael Niedermayer
avformat/electronicarts: change non failure return of read_header() to 0
This matches the documentation, but makes no functional difference
Found-by: James Almer
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a2df7ca26cf31b36facdb14ede9ebeb4bce8773
---
libavformat/electronicarts.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 6976a133c3..d0f483aaf9 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -561,14 +561,14 @@ static int ea_read_header(AVFormatContext *s)
st->codecpar->bits_per_coded_sample;
ea->audio_stream_index = st->index;
st->start_time = 0;
- return 1;
+ return 0;
}
no_audio:
ea->audio_codec = AV_CODEC_ID_NONE;
if (!ea->video.codec)
return AVERROR_INVALIDDATA;
- return 1;
+ return 0;
}
static int ea_read_packet(AVFormatContext *s, AVPacket *pkt)
More information about the ffmpeg-cvslog
mailing list