mpeg4videoparse: Use correct values for checking VO startcode.
authorMichael Smith <msmith@songbirdnest.com>
Fri, 27 Feb 2009 19:36:58 +0000 (11:36 -0800)
committerMichael Smith <msmith@songbirdnest.com>
Fri, 27 Feb 2009 19:36:58 +0000 (11:36 -0800)
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

index 0d1223c2e1bc8248fa2c70109cf16366297c83fc..1efa28bee1c8a5940d5debb7801fdff6cd51e943 100644 (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;