libav: avcfg: Avoid brittle comparision
authorEdward Hervey <edward@centricular.com>
Fri, 4 Nov 2022 07:00:03 +0000 (08:00 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 17:59:21 +0000 (17:59 +0000)
commit0213536f770ec3177eb471099edb18548ff9e763
tree3022c80c968b504973a6cdb086ea6e7c9ca6dc47
parentcadc067bde7531e48c2144fa31c5e644c92097f4
libav: avcfg: Avoid brittle comparision

Subtracting a gint from another (or a guint from another) has no guarantees that
it will result in a gint.

Therefore do the actual comparision instead.

Also use the *actual* type for comparing flags (the field value types are different)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3319>
subprojects/gst-libav/ext/libav/gstavcfg.c