[gst-cvs] gst-plugins-bad: mpeg4videoparse: Use correct values for checking VO startcode.
Michael Smith
msmith at kemper.freedesktop.org
Fri Feb 27 11:38:19 PST 2009
Module: gst-plugins-bad
Branch: master
Commit: c0ad05cec444776cf69366b98664e8e9affefd5d
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c0ad05cec444776cf69366b98664e8e9affefd5d
Author: Michael Smith <msmith at songbirdnest.com>
Date: Fri Feb 27 11:36:58 2009 -0800
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
---
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 0d1223c..1efa28b 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;
More information about the Gstreamer-commits
mailing list