From 4930dc40cd8537e6004c9ec7c9f8467ee10284ad Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Sat, 9 Nov 2013 13:32:21 +0100 Subject: [PATCH] mpegvideoparse: check for same TSN only for interlaced streams (fixes unit test) https://bugzilla.gnome.org/show_bug.cgi?id=711721 --- gst/videoparsers/gstmpegvideoparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 79387f3..1b2116f 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -544,7 +544,9 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse, /* if terminating packet is a picture, we need to check if it has same TSN as the picture that is being terminated. If it does, we need to keep those together, as these packets are two fields of the same frame */ - if (packet->type == GST_MPEG_VIDEO_PACKET_PICTURE) { + if (packet->type == GST_MPEG_VIDEO_PACKET_PICTURE + && (mpvparse->config_flags & FLAG_SEQUENCE_EXT) + && !mpvparse->sequenceext.progressive) { if (info->size - off < 2) { /* we need at least two bytes to read the TSN */ ret = FALSE; } else { -- 2.7.4