diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-09 15:50:57 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-09 21:26:58 +0100 |
commit | 0acca1791ee3180726d850c40b8bba2937502c3b (patch) | |
tree | 7696f5e8f5532553df99efcfd61cb173b23409db | |
parent | e53ab575daeda555d84557e43a18f8588c0203dd (diff) | |
download | ffmpeg-0acca1791ee3180726d850c40b8bba2937502c3b.tar.gz |
avformat/amr: Return error upon error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit abc7d1c697e0dbe463ca6632e45142ae72d139a9)
-rw-r--r-- | libavformat/amr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |