gstav1parse: fixup various possible logical errors
authorCamilo Celis Guzman <camilo@pexip.com>
Mon, 18 Apr 2022 08:50:22 +0000 (17:50 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 19 Apr 2022 18:36:38 +0000 (18:36 +0000)
commit8707d0cb2608705018e3c02658a75c7ab23bb972
tree1a151fec5bfae87b73d28d82f7ef89e5d13b3da5
parente950095867ba98e0e97a961176b76c4383ded240
gstav1parse: fixup various possible logical errors

Found via an analyzed build for Clang. Specifically we had:

gstav1parse.c[1850,11] in gst_av1_parse_detect_stream_format: Logic error: The left operand of '==' is a garbage value
gstav1parse.c[1606,11] in gst_av1_parse_handle_to_small_and_equal_align: Logic error: The left operand of '==' is a garbage value

Also a couple of false-positives:

gstav1parse.c[1398,24] in gst_av1_parse_handle_one_obu: Logic error: Branch condition evaluates to a garbage value
gstav1parse.c[1440,37] in gst_av1_parse_handle_one_obu: Logic error: The left operand of '-' is a garbage value

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2230>
subprojects/gst-plugins-bad/gst/videoparsers/gstav1parse.c