vdpauh264dec: fix initalization of GstNalReader cache

This commit is contained in:
Carl-Anton Ingmarsson 2010-06-24 22:06:56 +02:00
parent 57b9ce71b4
commit 731d160e6d
2 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ gst_nal_reader_new (const guint8 * data, guint size)
ret->size = size; ret->size = size;
ret->first_byte = 0xff; ret->first_byte = 0xff;
ret->cache = 0xffffffff; ret->cache = 0xff;
return ret; return ret;
} }
@ -118,7 +118,7 @@ gst_nal_reader_init (GstNalReader * reader, const guint8 * data, guint size)
reader->bits_in_cache = 0; reader->bits_in_cache = 0;
/* fill with something other than 0 to detect emulation prevention bytes */ /* fill with something other than 0 to detect emulation prevention bytes */
reader->first_byte = 0xff; reader->first_byte = 0xff;
reader->cache = 0xffffffff; reader->cache = 0xff;
} }
/** /**

View file

@ -79,7 +79,7 @@ gboolean gst_nal_reader_peek_se (const GstNalReader *reader, gint32 *val);
* *
* Since: 0.10.22 * Since: 0.10.22
*/ */
#define GST_NAL_READER_INIT(data, size) {data, size, 0, 0, 0xff, 0xffffffffff} #define GST_NAL_READER_INIT(data, size) {data, size, 0, 0, 0xff, 0xff}
/** /**
* GST_NAL_READER_INIT_FROM_BUFFER: * GST_NAL_READER_INIT_FROM_BUFFER:
@ -92,7 +92,7 @@ gboolean gst_nal_reader_peek_se (const GstNalReader *reader, gint32 *val);
* *
* Since: 0.10.22 * Since: 0.10.22
*/ */
#define GST_NAL_READER_INIT_FROM_BUFFER(buffer) {GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer), 0, 0, 0xff, 0xffffffffff} #define GST_NAL_READER_INIT_FROM_BUFFER(buffer) {GST_BUFFER_DATA (buffer), GST_BUFFER_SIZE (buffer), 0, 0, 0xff, 0xff}
G_END_DECLS G_END_DECLS