h264parse: remove redundant code
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 18 Nov 2011 16:18:01 +0000 (17:18 +0100)
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Fri, 18 Nov 2011 16:20:10 +0000 (17:20 +0100)
... now that what should not be needed is really not needed anymore to cover
up bogus stuff that has been FIXMEd.

gst/videoparsers/gsth264parse.c

index 2f80913d00079b5eea53d08e8474d6c3d7d641f7..241b92da3628f1c3854e24879873d039bd5910c6 100644 (file)
@@ -707,12 +707,8 @@ gst_h264_parse_check_valid_frame (GstBaseParse * parse,
   }
 
 end:
-  /* FIXME this shouldnt be needed */
-  if (h264parse->nalu.sc_offset > 0 && data[h264parse->nalu.sc_offset - 1] == 0)
-    h264parse->nalu.sc_offset--;
-
   *skipsize = h264parse->nalu.sc_offset;
-  *framesize = nalu.offset + nalu.size - h264parse->nalu.sc_offset;     /* CHECKME */
+  *framesize = nalu.offset + nalu.size - h264parse->nalu.sc_offset;
   h264parse->current_off = current_off;
 
   return TRUE;