diff options
author | Michael Smith <msmith@songbirdnest.com> | 2009-02-27 11:36:58 -0800 |
---|---|---|
committer | Michael Smith <msmith@songbirdnest.com> | 2009-02-27 11:36:58 -0800 |
commit | c0ad05cec444776cf69366b98664e8e9affefd5d (patch) | |
tree | 9196cab65808d7e021dfde7f37eab91c2114e5c2 /gst | |
parent | 546bfbecb8dec16f784c0b10b64874d0b5b5d18e (diff) | |
download | gst-plugins-bad-c0ad05cec444776cf69366b98664e8e9affefd5d.tar.gz gst-plugins-bad-c0ad05cec444776cf69366b98664e8e9affefd5d.tar.bz2 gst-plugins-bad-c0ad05cec444776cf69366b98664e8e9affefd5d.zip |
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
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpeg4videoparse/mpeg4videoparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpeg4videoparse/mpeg4videoparse.c b/gst/mpeg4videoparse/mpeg4videoparse.c index 0d1223c2..1efa28be 100644 --- a/gst/mpeg4videoparse/mpeg4videoparse.c +++ b/gst/mpeg4videoparse/mpeg4videoparse.c @@ -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; |