summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorZhao Halley <halley.zhao@intel.com>2011-12-06 08:25:59 +0800
committerThibault Saunier <thibault.saunier@collabora.com>2011-12-06 17:05:52 -0300
commitbefc724e5addb574ca2f136d0400e8b847aa72ec (patch)
tree2253dae0d97d21100af874c969c46e4c4c01f2c6 /gst-libs
parent164faafad6e7189520fc3a0f21db11235f03eb68 (diff)
codecparsers: fix an issue in finding the last video packet in vop
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gstmpeg4parser.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c
index 664aa04cc..91eab33de 100644
--- a/gst-libs/gst/codecparsers/gstmpeg4parser.c
+++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c
@@ -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,