mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
2a1add634c
commit
4d17166b03
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue