h264parse: Fix content light level value changes
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Apr 2020 18:00:48 +0000 (14:00 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 8 Apr 2020 18:01:23 +0000 (14:01 -0400)
Same as for H265, was found by Coverity.

gst/videoparsers/gsth264parse.c

index 822c50fe7cd4c4c48f43f012451038a003e17363..5d94dc68488a8df79bb3d351a05420c362f9233e 100644 (file)
@@ -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;
         }