From eea520fe6dfef77f5917f18e0ea0bbfd4c477b1a Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Wed, 8 Apr 2020 14:00:48 -0400 Subject: [PATCH] h264parse: Fix content light level value changes Same as for H265, was found by Coverity. --- gst/videoparsers/gsth264parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/videoparsers/gsth264parse.c b/gst/videoparsers/gsth264parse.c index 822c50fe7c..5d94dc6848 100644 --- a/gst/videoparsers/gsth264parse.c +++ b/gst/videoparsers/gsth264parse.c @@ -892,8 +892,8 @@ gst_h264_parse_process_sei (GstH264Parse * h264parse, GstH264NalUnit * nalu) if (h264parse->content_light_level_state == GST_H264_PARSE_SEI_EXPIRED) { h264parse->update_caps = TRUE; } else if (cll.max_content_light_level != - h264parse->content_light_level.max_frame_average_light_level || - cll.max_content_light_level != + h264parse->content_light_level.max_content_light_level || + cll.max_frame_average_light_level != h264parse->content_light_level.max_frame_average_light_level) { h264parse->update_caps = TRUE; } -- 2.34.1