FFmpeg/libavformat
Andreas Rheinhardt 4cc43d30c3 avformat/rmdec: Actually return value < 0 on read_header failure
The RealMedia demuxer's read_header function initially initializes ret,
the variable designated for the return variable to -1. Afterwards, chunks
of the file are parsed in a loop until an error happens or until the actual
frame data is encountered. If the first function whose return
value is put into ret doesn't fail, then ret contains a value >= 0
(actually == 0) and this is what will be returned if an error is
encountered afterwards.

This is a regression since 35bbc1955a58ba74552c50d9161084644f00bbd3.
Before that, ret had never been overwritten with a nonnegative value.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-09-19 20:26:50 +02:00
..
2020-09-18 11:34:11 +02:00
2019-12-12 19:25:33 +01:00
2020-09-18 11:34:11 +02:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:05:49 +01:00
2019-12-25 22:10:47 +01:00
2020-06-22 12:19:56 +02:00
2019-12-12 19:25:33 +01:00
2020-03-17 16:04:42 +01:00
2020-03-17 16:08:13 +01:00
2020-08-18 07:03:00 +02:00
2020-09-04 16:01:53 +02:00
2020-05-31 00:55:12 +02:00
2020-09-18 11:30:03 +02:00
2020-09-18 11:34:11 +02:00
2020-06-18 21:31:13 +02:00
2019-10-08 13:47:16 +08:00
2020-09-03 18:11:00 +02:00
2020-09-12 17:27:26 +08:00
2019-12-12 19:25:33 +01:00
2020-04-19 02:37:46 +02:00
2020-09-03 18:03:18 +02:00
2019-12-12 19:25:33 +01:00
2020-03-17 22:46:36 +01:00
2019-12-12 19:25:33 +01:00
2020-06-06 00:25:00 +02:00
2020-06-06 00:25:00 +02:00
2020-05-19 20:09:25 +02:00
2020-02-16 12:54:57 +01:00
2019-12-12 19:25:33 +01:00
2019-03-20 18:38:48 +01:00
2020-09-13 16:05:01 +02:00
2020-06-04 10:52:42 +02:00
2020-06-13 00:43:09 +02:00
2020-09-18 11:34:11 +02:00
2020-02-20 14:41:26 +01:00
2020-03-12 18:47:39 +01:00
2020-07-26 16:47:01 +02:00