mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 12:56:56 +00:00
libavcodec/dynamic_hdr_vivid: fix start code check
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
8de8f1df77
commit
ac5dffdfe6
@ -46,7 +46,8 @@ int ff_parse_itu_t_t35_to_dynamic_hdr_vivid(AVDynamicHDRVivid *s, const uint8_t
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
s->system_start_code = get_bits(gb, 8);
|
||||
if (s->system_start_code == 0x01) {
|
||||
// T/UWA 005.1-2022, table 11
|
||||
if (s->system_start_code >= 0x01 && s->system_start_code <= 0x07) {
|
||||
s->num_windows = 1;
|
||||
|
||||
if (get_bits_left(gb) < 12 * 4 * s->num_windows)
|
||||
|
Loading…
Reference in New Issue
Block a user