diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-03-17 18:51:16 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-03-17 18:52:36 +0800 |
commit | 13deb775cfccb10bf03789ca9d05e2a3f6131126 (patch) | |
tree | 2bbc44056778d62fc1958d1739f3554d9ada8e73 /fftools/ffprobe.c | |
parent | c62fe3eee25910ee1573a0063623348895b56426 (diff) | |
download | ffmpeg-13deb775cfccb10bf03789ca9d05e2a3f6131126.tar.gz |
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>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index 0db419d093..969fa1b9f8 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -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]; |