From 4d17166b0355cad49ab8fda059a390db3eee6ad6 Mon Sep 17 00:00:00 2001 From: Sreerenj Balachandran Date: Mon, 10 Mar 2014 11:19:46 +0200 Subject: [PATCH] mpegvideoparse: Differentiate the mpeg-2 stream from mpeg-1 based on pic_ext Presence of picture extension header identifies the stream as mpeg2. We are supposed to set the mpegversion to 2 if there is a picextension instead of blindly setting the version to 1 https://bugzilla.gnome.org/show_bug.cgi?id=726028 --- gst/videoparsers/gstmpegvideoparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 5e02a8babb..dadab94e66 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -505,6 +505,7 @@ gst_mpegv_parse_process_sc (GstMpegvParse * mpvparse, ret = TRUE; break; case GST_MPEG_VIDEO_PACKET_EXTENSION: + mpvparse->config_flags |= FLAG_MPEG2; GST_LOG_OBJECT (mpvparse, "startcode is VIDEO PACKET EXTENSION"); if (mpvparse->pic_offset >= 0) { GST_LOG_OBJECT (mpvparse, "... considered PICTURE EXTENSION");