gst-plugins-bad: codecparsers: remove h263 gob parsing, since there is no gob immediate after svh

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


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

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

codecparsers: remove h263 gob parsing, since there is no gob immediate after svh

---

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

diff --git a/gst-libs/gst/codecparsers/gstmpeg4parser.c b/gst-libs/gst/codecparsers/gstmpeg4parser.c
index 461196a..fcaa419 100644
--- a/gst-libs/gst/codecparsers/gstmpeg4parser.c
+++ b/gst-libs/gst/codecparsers/gstmpeg4parser.c
@@ -1491,7 +1491,6 @@ gst_mpeg4_parse_video_plane_short_header (GstMpeg4VideoPlaneShortHdr *
     shorthdr, const guint8 * data, gsize size)
 {
   guint8 zero_bits;
-  guint32 gob_resync;
 
   GstBitReader br = GST_BIT_READER_INIT (data, size);
 
@@ -1578,26 +1577,6 @@ gst_mpeg4_parse_video_plane_short_header (GstMpeg4VideoPlaneShortHdr *
 
   } while (shorthdr->pei == 1);
 
-  if (!gst_bit_reader_peek_bits_uint32 (&br, &gob_resync, 17))
-    goto failed;
-
-  /* gob_layer() */
-
-  /* Setting default values */
-  shorthdr->gob_header_empty = 1;
-  shorthdr->gob_number = 0;
-  shorthdr->gob_frame_id = 0;
-  shorthdr->quant_scale = 0;
-
-  if (gob_resync == 0x01) {
-    shorthdr->gob_header_empty = 0;
-
-    gst_bit_reader_skip_unchecked (&br, 17);
-    READ_UINT8 (&br, shorthdr->gob_number, 5);
-    READ_UINT8 (&br, shorthdr->gob_frame_id, 2);
-    READ_UINT8 (&br, shorthdr->quant_scale, 5);
-  }
-
   shorthdr->size = gst_bit_reader_get_pos (&br);
 
   return GST_MPEG4_PARSER_OK;



More information about the gstreamer-commits mailing list