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:31 +0800 |
commit | 8de8f1df7724dc0700adc9a641a52f804c871e70 (patch) | |
tree | dd2787a17a219df13088c74432ca93b9bf2dc2a0 /fftools/ffprobe.c | |
parent | 4ec2861559ee4e619195c4eb0b2ed8b2f0b9afc1 (diff) | |
download | ffmpeg-8de8f1df7724dc0700adc9a641a52f804c871e70.tar.gz |
fftools/ffprobe: fix HDR vivid info
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index af927cb084..0db419d093 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2246,14 +2246,16 @@ static void print_dynamic_hdr_vivid(WriterContext *w, const AVDynamicHDRVivid *m print_int("3Spline_enable_flag", tm_params->three_Spline_enable_flag); if (tm_params->three_Spline_enable_flag) { print_int("3Spline_num", tm_params->three_Spline_num); - print_int("3Spline_TH_mode", tm_params->three_Spline_TH_mode); for (int j = 0; j < tm_params->three_Spline_num; j++) { - print_q("3Spline_TH_enable_MB", tm_params->three_Spline_TH_enable_MB, '/'); - print_q("3Spline_TH_enable", tm_params->three_Spline_TH_enable, '/'); - print_q("3Spline_TH_Delta1", tm_params->three_Spline_TH_Delta1, '/'); - print_q("3Spline_TH_Delta2", tm_params->three_Spline_TH_Delta2, '/'); - print_q("3Spline_enable_Strength", tm_params->three_Spline_enable_Strength, '/'); + const AVHDRVivid3SplineParams *three_spline = &tm_params->three_spline[j]; + print_int("3Spline_TH_mode", three_spline->th_mode); + if (three_spline->th_mode == 0 || three_spline->th_mode == 2) + print_q("3Spline_TH_enable_MB", three_spline->th_enable_mb, '/'); + print_q("3Spline_TH_enable", three_spline->th_enable, '/'); + print_q("3Spline_TH_Delta1", three_spline->th_delta1, '/'); + print_q("3Spline_TH_Delta2", three_spline->th_delta2, '/'); + print_q("3Spline_enable_Strength", three_spline->enable_strength, '/'); } } } |