Commit 96406696 authored by Raimo Järvi's avatar Raimo Järvi Committed by Tim-Philipp Müller

tsdemux: Fix parsing P-STD_buffer in PES header

https://bugzilla.gnome.org/show_bug.cgi?id=686294
parent b1cd1e7a
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment