codecparsers: fix an issue in check resync marker

This commit is contained in:
Zhao Halley 2011-12-06 08:31:14 +08:00 committed by Thibault Saunier
parent befc724e5a
commit 3aa9081ef5

View file

@ -1616,7 +1616,7 @@ gst_mpeg4_parse_video_packet_header (GstMpeg4VideoPacketHdr * videopackethdr,
CHECK_REMAINING (&br, markersize);
if (gst_bit_reader_get_bits_uint32_unchecked (&br, markersize) != 0x01)
if (gst_bit_reader_get_bits_uint32_unchecked (&br, markersize + 1) != 0x01)
goto failed;
if (vol->shape != GST_MPEG4_RECTANGULAR) {