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
This commit is contained in:
Sreerenj Balachandran 2014-03-10 11:19:46 +02:00 committed by Sebastian Dröge
parent 2a1add634c
commit 4d17166b03

View file

@ -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");