avformat/amr: Return error upon error

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
release/5.1
Andreas Rheinhardt 3 years ago
parent 22dc472d84
commit abc7d1c697
  1. 2
      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)

Loading…
Cancel
Save