avformat/amr: Return error upon error

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-01-09 15:50:57 +01:00
parent 22dc472d84
commit abc7d1c697
1 changed files with 1 additions and 1 deletions

View File

@ -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)