Andreas Rheinhardt
14644e3322
cbs_mpeg2: Fix parsing the last unit
...
There is one way to find out if avpriv_find_start_code has found a start
code or not: One has to check whether the state variable contains a
start code, i.e. whether the three most significant bytes are 0x00 00 01.
Checking for whether the return value is the end of the designated
buffer is not enough: If the last four bytes constitute a start code,
the return value is also the end of the buffer. This happens with
sequence_end_codes which have been ignored for exactly this reason,
although e.g. all three files used for fate tests of cbs_mpeg2 contain
sequence_end_codes.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com >
(cherry picked from commit fd93d5efe6 )
2019-12-31 16:57:37 -03:00
..
2019-07-19 01:23:23 +02:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-11-19 19:48:33 -03:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-08-04 21:16:28 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-07-08 22:59:41 +01:00
2019-07-17 17:56:15 -03:00
2019-09-04 20:26:35 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-08-04 21:16:28 +02:00
2019-09-23 10:11:25 -03:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:57 +01:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-07-08 22:59:41 +01:00
2019-12-31 16:57:37 -03:00
2019-07-20 11:28:09 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-12-31 16:57:37 -03:00
2019-08-04 21:16:28 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-09-04 20:26:35 +02:00
2019-08-05 19:34:33 +02:00
2019-09-04 20:26:35 +02:00
2019-07-17 23:18:50 +02:00
2019-12-31 19:51:57 +01:00
2019-07-14 22:17:43 +02:00
2019-07-13 19:34:15 +02:00
2019-07-20 19:05:02 +02:00
2019-12-31 19:51:56 +01:00
2019-08-04 21:16:28 +02:00
2019-08-04 21:16:28 +02:00
2019-12-31 19:51:56 +01:00
2019-12-06 21:33:54 -03:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-07-19 21:42:38 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-07-08 09:56:29 +02:00
2019-08-04 16:19:25 +02:00
2019-07-19 21:42:38 +02:00
2019-07-08 22:59:41 +01:00
2019-07-08 22:59:41 +01:00
2019-07-19 21:42:38 +02:00
2019-07-14 13:04:46 -03:00
2019-08-27 20:10:35 -03:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-09-04 20:26:35 +02:00
2019-07-20 11:28:09 -03:00
2019-12-31 19:51:55 +01:00
2019-09-04 20:26:35 +02:00
2019-07-08 09:56:08 +02:00
2019-12-31 19:51:55 +01:00
2019-07-13 14:42:57 +02:00
2019-07-13 14:42:57 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:57 +01:00
2019-07-08 10:00:41 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-07-17 23:18:50 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:56 +01:00
2019-07-11 16:53:09 +02:00
2019-07-26 18:28:37 +02:00
2019-07-26 18:28:15 +02:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:57 +01:00
2019-09-04 20:26:35 +02:00
2019-12-31 16:57:37 -03:00
2019-09-27 22:28:16 -03:00
2019-12-31 19:51:55 +01:00
2019-08-05 19:34:33 +02:00
2019-08-05 19:34:33 +02:00
2019-08-05 19:34:33 +02:00
2019-08-05 19:34:33 +02:00
2019-08-05 19:34:33 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-11-17 01:41:11 +01:00
2019-09-02 13:53:08 -07:00
2019-07-17 23:18:50 +02:00
2019-12-31 19:51:56 +01:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-09-04 20:26:35 +02:00
2019-07-08 09:54:55 +02:00
2019-08-05 19:34:33 +02:00
2019-12-31 19:51:56 +01:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-07-20 13:43:06 -03:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-09-04 20:26:35 +02:00
2019-07-09 13:23:47 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:57 +01:00
2019-07-21 18:36:18 +02:00
2019-07-11 09:34:34 +08:00
2019-12-31 19:51:56 +01:00
2019-09-06 23:00:46 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:56 +01:00
2019-09-04 20:26:35 +02:00
2019-09-04 20:26:35 +02:00
2019-09-04 20:26:35 +02:00
2019-12-31 19:51:55 +01:00
2019-12-31 19:51:55 +01:00
2019-08-05 19:34:33 +02:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:57 +01:00
2019-12-31 19:51:56 +01:00