diff options
author | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2014-03-10 11:19:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-03-12 08:46:41 +0100 |
commit | 4d17166b0355cad49ab8fda059a390db3eee6ad6 (patch) | |
tree | e956036219e761e1ad2045dcad847721d6c1f8b1 | |
parent | 2a1add634c81ee373719d6b43db76127a831e809 (diff) | |
download | gstreamer-plugins-bad-4d17166b0355cad49ab8fda059a390db3eee6ad6.tar.gz |
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
-rw-r--r-- | gst/videoparsers/gstmpegvideoparse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 5e02a8bab..dadab94e6 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"); |