tsdemux: fix program packet sequence counter parsing in PES header

This commit is contained in:
Tim-Philipp Müller 2012-10-19 01:03:51 +01:00
parent 10c881b107
commit 465374f3c8

View file

@ -296,7 +296,7 @@ mpegts_parse_pes_header (const guint8 * data, gsize length, PESHeader * res,
val8 = *data++;
/* GRMBL, this is most often wrong */
if (G_UNLIKELY ((val8 * 0x80) != 0x80))
if (G_UNLIKELY ((val8 & 0x80) != 0x80))
goto bad_sequence_marker2;
res->MPEG1_MPEG2_identifier = (val8 >> 6) & 0x1;
res->original_stuff_length = val8 & 0x3f;