From 5aaf56af2936df3e789e48cfacaf8e398c7e49c6 Mon Sep 17 00:00:00 2001 From: Zhao Halley Date: Tue, 6 Dec 2011 08:53:07 +0800 Subject: codecparsers: return NO_PACKET if needed --- gst-libs/gst/codecparsers/gstmpeg4parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gst-libs') diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c index b49250ab1..5b7c45cfc 100644 --- a/gst-libs/gst/codecparsers/gstmpeg4parser.c +++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c @@ -443,12 +443,12 @@ gst_mpeg4_parse (GstMpeg4Packet * packet, gboolean skip_user_data, /* We found a complet slice */ if (resync_res == GST_MPEG4_PARSER_OK) return resync_res; - 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; - } + } else if (resync_res == GST_MPEG4_PARSER_NO_PACKET) + return resync_res; } off1 = gst_byte_reader_masked_scan_uint32 (&br, 0xffffff00, 0x00000100, -- cgit v1.2.3