gst-plugins-bad: codecparsers: add missing zero_bits in h263 parsing

Thibault Saunier tsaunier at kemper.freedesktop.org
Thu Jan 5 03:54:02 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: bb52df5e24a7271f310eebe16a47719262285a79
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=bb52df5e24a7271f310eebe16a47719262285a79

Author: Zhao Halley <halley.zhao at intel.com>
Date:   Thu Dec  8 12:13:38 2011 +0800

codecparsers: add missing zero_bits in h263 parsing

---

 gst-libs/gst/codecparsers/gstmpeg4parser.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c
index ad7fcb6..461196a 100644
--- a/gst-libs/gst/codecparsers/gstmpeg4parser.c
+++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c
@@ -1506,6 +1506,10 @@ gst_mpeg4_parse_video_plane_short_header (GstMpeg4VideoPlaneShortHdr *
   shorthdr->temporal_reference =
       gst_bit_reader_get_bits_uint8_unchecked (&br, 8);
   CHECK_MARKER (&br);
+  zero_bits = gst_bit_reader_get_bits_uint8_unchecked (&br, 1);
+  if (zero_bits != 0x00)
+    goto failed;
+
   shorthdr->split_screen_indicator =
       gst_bit_reader_get_bits_uint8_unchecked (&br, 1);
   shorthdr->document_camera_indicator =



More information about the gstreamer-commits mailing list