FFmpeg/libavcodec
Andreas Rheinhardt 9c3f2a8894 cbs_mpeg2: Improve checks for invalid values
MPEG-2 contains several elements that mustn't be zero according to the
specifications: horizontal/vertical_size_value, aspect_ratio_information,
frame_rate_code, the quantiser matrices, the colour_description
elements, picture_coding_type, the f_code[r][s] values and
quantiser_scale_code. It is now checked that the invalid values don't
occur.

The colour_description elements are treated specially in this regard:
Given that there are files in the wild which use illegal values for the
colour_description elements (some of them created by mpeg2_metadata),
they will be corrected to the value meaning "unknown" (namely 2) during
reading. This has been done in such a way that trace_headers will
nevertheless report the original value, together with a message about
the fixup.

Furthermore, the trace_headers output of user_data has been beautified.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2019-05-28 23:59:29 +01:00
..
2019-04-11 11:58:34 +02:00
2019-04-19 14:01:04 +02:00
2019-04-13 18:10:11 +02:00
2019-05-12 14:17:35 +08:00
2019-04-13 18:10:11 +02:00
2019-04-21 19:43:14 +02:00
2019-05-06 23:58:34 +02:00
2019-04-27 12:33:08 +02:00
2019-03-31 23:35:00 +02:00
2019-05-25 02:04:43 +02:00
2019-05-07 11:00:19 +08:00
2019-04-03 23:00:15 +08:00
2019-03-31 18:39:58 +02:00
2019-05-02 15:36:16 +02:00
2019-05-02 15:36:16 +02:00