You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/amr: Return error upon error
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -91,7 +91,7 @@ static int amr_read_header(AVFormatContext *s)
|
|||||||
|
|
||||||
read = avio_read(pb, header, sizeof(header));
|
read = avio_read(pb, header, sizeof(header));
|
||||||
if (read < 0)
|
if (read < 0)
|
||||||
return ret;
|
return read;
|
||||||
|
|
||||||
st = avformat_new_stream(s, NULL);
|
st = avformat_new_stream(s, NULL);
|
||||||
if (!st)
|
if (!st)
|
||||||
|
Reference in New Issue
Block a user