mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +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
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue