codecparsers: vp8: move up built-in range decoder private data.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jun 2014 13:59:35 +0000 (15:59 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 26 Jun 2014 14:04:54 +0000 (16:04 +0200)
Use the first _gst_reserved[] slot to hold the built-in range decoder
private data. The first slot was formerly the buffer size, which was
then promoted to semi-public namespace when it got integrated as git
commit 2940ac6.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst-libs/gst/codecparsers/gstvp8rangedecoder.c

index b0ab2d0..4d381c5 100644 (file)
@@ -12,7 +12,7 @@
 #include "dboolhuff.h"
 
 #define BOOL_DECODER_CAST(rd) \
-  ((BOOL_DECODER *)(&(rd)->_gst_reserved[1]))
+  ((BOOL_DECODER *)(&(rd)->_gst_reserved[0]))
 
 gboolean
 gst_vp8_range_decoder_init (GstVp8RangeDecoder * rd, const guchar * buf,