diff mbox series

[FFmpeg-devel] avformat/amr: Return error upon error

Message ID AM7PR03MB6660B4A3F07BABC0935482508F4F9@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit abc7d1c697e0dbe463ca6632e45142ae72d139a9
Headers show
Series [FFmpeg-devel] avformat/amr: Return error upon error | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished
andriy/make_armv7_RPi4 success Make finished
andriy/make_fate_armv7_RPi4 success Make fate finished

Commit Message

Andreas Rheinhardt Jan. 9, 2022, 2:51 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
Will apply soon and backport.

 libavformat/amr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavformat/amr.c b/libavformat/amr.c
index 40d5bc9cc5..bc22c2f84f 100644
--- a/libavformat/amr.c
+++ b/libavformat/amr.c
@@ -91,7 +91,7 @@  static int amr_read_header(AVFormatContext *s)
 
     read = avio_read(pb, header, sizeof(header));
     if (read < 0)
-        return ret;
+        return read;
 
     st = avformat_new_stream(s, NULL);
     if (!st)