mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 08:41:07 +00:00
mpeg4videoparse: fix compile error
gst/mpeg4videoparse/mpeg4videoparse.c:689: warning: comparison is always true due to limited range of data type https://bugzilla.gnome.org/show_bug.cgi?id=612454
This commit is contained in:
parent
71d0e513fa
commit
79faa0b9fa
1 changed files with 3 additions and 2 deletions
|
@ -686,8 +686,9 @@ gst_mpeg4vparse_sink_setcaps (GstPad * pad, GstCaps * caps)
|
|||
/* Usually the codec data will be a visual object sequence, containing
|
||||
a visual object, with a video object/video object layer. */
|
||||
res = gst_mpeg4vparse_handle_vos (parse, data, GST_BUFFER_SIZE (buf));
|
||||
} else if (data[3] >= VIDEO_OBJECT_STARTCODE_MIN &&
|
||||
data[3] <= VIDEO_OBJECT_STARTCODE_MAX) {
|
||||
} else if (data[3] <= VIDEO_OBJECT_STARTCODE_MAX) {
|
||||
/* VIDEO_OBJECT_STARTCODE_MIN is zero, and data is unsigned, so we
|
||||
don't need to check min (and in fact that causes a compile err */
|
||||
/* Sometimes, instead, it'll just have the video object/video object
|
||||
layer data. We can parse that too, though it'll give us slightly
|
||||
less information. */
|
||||
|
|
Loading…
Reference in a new issue