aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1_block.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2019-05-22 03:04:32 +0200
committerJames Almer <jamrial@gmail.com>2019-07-21 01:05:24 -0300
commitb010caa6c9e85657c2032046773cb1a816a5b1da (patch)
tree1bccd82e27abeb3f9c828c0fafd1408b46978d7a /libavcodec/vc1_block.c
parentae5c80b9cae8716085eaacd887c28378ae99233b (diff)
downloadffmpeg-b010caa6c9e85657c2032046773cb1a816a5b1da.tar.gz
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> (cherry picked from commit 9c3f2a8894a66d6b5b9285caa25f91fbfca7b3bc)
Diffstat (limited to 'libavcodec/vc1_block.c')
0 files changed, 0 insertions, 0 deletions