summaryrefslogtreecommitdiff
path: root/src/video_dec/libvdpau/h264_parser.c
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2012-05-07 13:05:55 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2012-05-07 13:05:55 +0300
commiteac4bca1228c930dc9ecb0082ec1d38936bbd3da (patch)
tree6584a5794ac2d6489b7161236fc01a0e80900bf2 /src/video_dec/libvdpau/h264_parser.c
parente1d12d53665a1179ccffcee8d390bf1d8bdec078 (diff)
downloadxine-lib-eac4bca1228c930dc9ecb0082ec1d38936bbd3da.tar.gz
xine-lib-eac4bca1228c930dc9ecb0082ec1d38936bbd3da.tar.bz2
Killed warnings in vdpau decoders
Diffstat (limited to 'src/video_dec/libvdpau/h264_parser.c')
-rw-r--r--src/video_dec/libvdpau/h264_parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_dec/libvdpau/h264_parser.c b/src/video_dec/libvdpau/h264_parser.c
index d495bf483..01033e2cc 100644
--- a/src/video_dec/libvdpau/h264_parser.c
+++ b/src/video_dec/libvdpau/h264_parser.c
@@ -109,6 +109,7 @@ void parse_dec_ref_pic_marking(struct buf_reader *buf,
/* here goes the parser implementation */
+#if 0
static void decode_nal(uint8_t **ret, int *len_ret, uint8_t *buf, int buf_len)
{
// TODO: rework without copying
@@ -130,6 +131,7 @@ static void decode_nal(uint8_t **ret, int *len_ret, uint8_t *buf, int buf_len)
*len_ret = pos - *ret;
}
+#endif
#if 0
static inline void dump_bits(const char *label, const struct buf_reader *buf, int bits)
@@ -269,8 +271,8 @@ struct nal_unit* parse_nal_header(struct buf_reader *buf,
buf->cur_pos = buf->buf + 1;
//lprintf("NAL: %d\n", nal->nal_unit_type);
- struct buf_reader ibuf;
- ibuf.cur_offset = 8;
+ //struct buf_reader ibuf;
+ //ibuf.cur_offset = 8;
switch (nal->nal_unit_type) {
case NAL_SPS: