mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-12 17:36:44 +00:00
mpeg4videoparse: Use correct values for checking VO startcode.
Fix compiler warning due to condition always being true - since we're only looking at the final byte of the startcode (not the leading 0x000001), only check for < 0x1f, not < 0x11f
This commit is contained in:
parent
546bfbecb8
commit
c0ad05cec4
|
@ -484,7 +484,7 @@ gst_mpeg4vparse_drain (GstMpeg4VParse * parse, GstBuffer * last_buffer)
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (code <= 0x11f)
|
if (code <= 0x1f)
|
||||||
found = TRUE;
|
found = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -525,7 +525,7 @@ gst_mpeg4vparse_drain (GstMpeg4VParse * parse, GstBuffer * last_buffer)
|
||||||
parse->state = PARSE_VOS_FOUND;
|
parse->state = PARSE_VOS_FOUND;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (code <= 0x11f) {
|
if (code <= 0x1f) {
|
||||||
GST_LOG_OBJECT (parse, "found VO start marker at %u",
|
GST_LOG_OBJECT (parse, "found VO start marker at %u",
|
||||||
parse->offset);
|
parse->offset);
|
||||||
parse->vos_offset = parse->offset;
|
parse->vos_offset = parse->offset;
|
||||||
|
|
Loading…
Reference in a new issue