mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-11 18:09:36 +00:00
fftools/ffprobe: fix print_dynamic_hdr_vivid
Don't print tone_mapping_param_num if tone_mapping_mode_flag is disabled. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
c62fe3eee2
commit
13deb775cf
@ -2221,8 +2221,8 @@ static void print_dynamic_hdr_vivid(WriterContext *w, const AVDynamicHDRVivid *m
|
||||
const AVHDRVividColorTransformParams *params = &metadata->params[n];
|
||||
|
||||
print_int("tone_mapping_mode_flag", params->tone_mapping_mode_flag);
|
||||
print_int("tone_mapping_param_num", params->tone_mapping_param_num);
|
||||
if (params->tone_mapping_mode_flag) {
|
||||
print_int("tone_mapping_param_num", params->tone_mapping_param_num);
|
||||
for (int i = 0; i < params->tone_mapping_param_num; i++) {
|
||||
const AVHDRVividColorToneMappingParams *tm_params = ¶ms->tm_params[i];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user