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

Tim Müller tpm at kemper.freedesktop.org
Thu Jan 5 15:08:47 PST 2012


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

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