From 0ba3f63b395621a5620b39c509a3b74582038de2 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Wed, 13 Aug 2003 21:15:03 +0000 Subject: [PATCH] I'm too lazy to comment this Original commit message from CVS: Fix mpeg version identification bug. The field is 2 bits, not 4, which causes mpegs to sometimes be identified as mpeg1 while it was mpeg2. See #119372. Fix by --- gst/mpegstream/gstmpegpacketize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/mpegstream/gstmpegpacketize.c b/gst/mpegstream/gstmpegpacketize.c index 1f43eca908..cb6b339d64 100644 --- a/gst/mpegstream/gstmpegpacketize.c +++ b/gst/mpegstream/gstmpegpacketize.c @@ -72,7 +72,7 @@ parse_packhead (GstMPEGPacketize *packetize) GST_DEBUG ("code %02x", *buf); /* start parsing the stream */ - if ((*buf & 0xf0) == 0x40) { + if ((*buf & 0xc0) == 0x40) { GST_DEBUG ("packetize::parse_packhead setting mpeg2"); packetize->MPEG2 = TRUE; length += 2;