tsdemux: Fix parsing P-STD_buffer in PES header

https://bugzilla.gnome.org/show_bug.cgi?id=686294
This commit is contained in:
Raimo Järvi 2012-10-17 15:54:32 +03:00 committed by Tim-Philipp Müller
parent b1cd1e7a88
commit 9640669689

View file

@ -310,7 +310,7 @@ mpegts_parse_pes_header (const guint8 * data, gsize length, PESHeader * res,
if (G_UNLIKELY (length < 2))
goto need_more_data;
val8 = *data;
if (G_UNLIKELY ((val8 * 0xc0) != 0x40))
if (G_UNLIKELY ((val8 & 0xc0) != 0x40))
goto bad_P_STD_marker;
res->P_STD_buffer_size =
(GST_READ_UINT16_BE (data) & 0x1fff) << (val8 & 0x20) ? 10 : 7;