mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-11 06:58:18 +00:00
avformat/amr: Return error upon error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
22dc472d84
commit
abc7d1c697
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user