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:
Michael Smith 2009-02-27 11:36:58 -08:00
parent 546bfbecb8
commit c0ad05cec4

View file

@ -484,7 +484,7 @@ gst_mpeg4vparse_drain (GstMpeg4VParse * parse, GstBuffer * last_buffer)
found = TRUE;
break;
default:
if (code <= 0x11f)
if (code <= 0x1f)
found = TRUE;
break;
}
@ -525,7 +525,7 @@ gst_mpeg4vparse_drain (GstMpeg4VParse * parse, GstBuffer * last_buffer)
parse->state = PARSE_VOS_FOUND;
break;
default:
if (code <= 0x11f) {
if (code <= 0x1f) {
GST_LOG_OBJECT (parse, "found VO start marker at %u",
parse->offset);
parse->vos_offset = parse->offset;