diff options
author | Raimo Järvi <raimo.jarvi@gmail.com> | 2012-10-17 15:54:32 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2012-10-19 00:29:40 +0100 |
commit | 96406696898665db36d0a4665a4629c89f45b54e (patch) | |
tree | b33a5dee0b542062d85b8a1e82ac92a365f9bbfe | |
parent | b1cd1e7a88e6d8d18fd7b68e920617aff6f17df1 (diff) | |
download | gstreamer-plugins-bad-96406696898665db36d0a4665a4629c89f45b54e.tar.gz |
tsdemux: Fix parsing P-STD_buffer in PES header
https://bugzilla.gnome.org/show_bug.cgi?id=686294
-rw-r--r-- | gst/mpegtsdemux/pesparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/mpegtsdemux/pesparse.c b/gst/mpegtsdemux/pesparse.c index ce3ff41a9..75f593cda 100644 --- a/gst/mpegtsdemux/pesparse.c +++ b/gst/mpegtsdemux/pesparse.c @@ -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; |