aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/amr.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-09 15:50:57 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-01-09 21:25:03 +0100
commitabc7d1c697e0dbe463ca6632e45142ae72d139a9 (patch)
treef2110cd08f57afb9f72a387516e9f618c5e95fff /libavformat/amr.c
parent22dc472d844683524c4547706173dba40d835888 (diff)
downloadffmpeg-abc7d1c697e0dbe463ca6632e45142ae72d139a9.tar.gz
avformat/amr: Return error upon error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/amr.c')
-rw-r--r--libavformat/amr.c2
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)