1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavcodec
Anton Khirnov c2fa6bb0e8 mpeg12dec: move setting first_field to mpeg_field_start()
For field picture, the first_field is set based on its previous value.
Before this commit, first_field is set when reading the picture
coding extension. However, in corrupted files there may be multiple
picture coding extension headers, so the final value of first_field that
is actually used during decoding can be wrong. That can lead to various
undefined behaviour, like predicting from a non-existing field.

Fix this problem, by setting first_field in mpeg_field_start(), which
should be called exactly once per field.

CC: libav-stable@libav.org
Bug-ID: 999
2016-12-19 08:15:49 +01:00
..
2016-11-18 10:32:57 +01:00
2016-11-13 18:44:00 +01:00
2016-12-19 08:13:08 +01:00
2016-11-18 10:34:04 +01:00
2016-11-18 10:35:04 +01:00
2016-11-13 18:44:01 +01:00
2016-10-21 10:11:20 +02:00
2016-12-19 08:13:08 +01:00
2016-11-18 10:35:43 +01:00
2016-11-18 10:35:43 +01:00
2016-12-03 14:36:03 +01:00
2016-11-13 18:44:01 +01:00
2016-11-13 18:44:01 +01:00
2016-11-07 22:42:00 +01:00
2016-12-19 08:13:08 +01:00
2016-11-30 13:44:05 +01:00
2016-12-14 09:06:44 +01:00
2016-10-09 20:58:10 +02:00
2016-12-08 15:53:58 -05:00
2016-11-18 10:36:14 +01:00
2016-11-17 16:53:48 +01:00
2016-11-14 19:38:20 +00:00
2016-12-08 15:53:58 -05:00
2016-10-02 15:42:03 -04:00
2016-09-28 10:01:52 +02:00
2016-11-25 21:42:33 +01:00
2016-12-19 08:13:08 +01:00
2016-11-13 18:44:01 +01:00
2016-12-19 08:13:08 +01:00
2016-09-08 21:58:22 +01:00
2016-11-24 11:22:13 +01:00