codecparsers: fix an issue in finding the last video packet in vop

This commit is contained in:
Zhao Halley 2011-12-06 08:25:59 +08:00 committed by Thibault Saunier
parent 164faafad6
commit befc724e5a

View file

@ -444,8 +444,11 @@ gst_mpeg4_parse (GstMpeg4Packet * packet, gboolean skip_user_data,
if (resync_res == GST_MPEG4_PARSER_OK)
return resync_res;
else if (resync_res == GST_MPEG4_PARSER_OK)
else if (resync_res == GST_MPEG4_PARSER_NO_PACKET_END) {
/* It doesn't mean there is no standard packet end, look for it */
off1 = packet->offset;
goto find_end;
}
}
off1 = gst_byte_reader_masked_scan_uint32 (&br, 0xffffff00, 0x00000100,