Message ID | 20231002153103.21846-3-michael@niedermayer.cc |
---|---|
State | Accepted |
Commit | 029294ff541c9c85092f81dd45f18081d234f0d5 |
Headers | show |
Series | [FFmpeg-devel,1/3] avcodec/vaapi_encode: Avoid double AVERRORS | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c index 5104f231105..ab9ef052f9f 100644 --- a/libavformat/flacdec.c +++ b/libavformat/flacdec.c @@ -78,7 +78,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) {
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavformat/flacdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)