[FFmpeg-cvslog] avformat/flacdec: Avoid double AVERRORS

Michael Niedermayer git at videolan.org
Mon Apr 15 01:48:20 EEST 2024


ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Mon Oct  2 16:10:22 2023 +0200| [367670b38754f9f9a7f01df6b97ce7f75bd3a303] | committer: Michael Niedermayer

avformat/flacdec: Avoid double AVERRORS

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 029294ff541c9c85092f81dd45f18081d234f0d5)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=367670b38754f9f9a7f01df6b97ce7f75bd3a303
---

 libavformat/flacdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index 221b3e820d..f8395a9cdf 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -50,7 +50,7 @@ static int flac_read_header(AVFormatContext *s)
     /* process metadata blocks */
     while (!avio_feof(s->pb) && !metadata_last) {
         if (avio_read(s->pb, header, 4) != 4)
-            return AVERROR(AVERROR_INVALIDDATA);
+            return AVERROR_INVALIDDATA;
         flac_parse_block_header(header, &metadata_last, &metadata_type,
                                    &metadata_size);
         switch (metadata_type) {



More information about the ffmpeg-cvslog mailing list