mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avformat/flacdec: Avoid double AVERRORS
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 029294ff541c9c85092f81dd45f18081d234f0d5) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
7a42e9d892
commit
cd306f0019
@ -69,7 +69,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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user