diff vqavideo.c @ 4827:b3ee9a1526b0 libavcodec

Get rid of unnecessary pointer casts. patch by Nicholas Tung, ntung ntung com
author diego
date Sun, 08 Apr 2007 20:24:16 +0000
parents 66ef3690d108
children f99e40a7155b
line wrap: on
line diff
--- a/vqavideo.c	Sun Apr 08 18:54:53 2007 +0000
+++ b/vqavideo.c	Sun Apr 08 20:24:16 2007 +0000
@@ -133,7 +133,7 @@
 
 static int vqa_decode_init(AVCodecContext *avctx)
 {
-    VqaContext *s = (VqaContext *)avctx->priv_data;
+    VqaContext *s = avctx->priv_data;
     unsigned char *vqa_header;
     int i, j, codebook_index;;
 
@@ -571,7 +571,7 @@
                             void *data, int *data_size,
                             uint8_t *buf, int buf_size)
 {
-    VqaContext *s = (VqaContext *)avctx->priv_data;
+    VqaContext *s = avctx->priv_data;
 
     s->buf = buf;
     s->size = buf_size;
@@ -599,7 +599,7 @@
 
 static int vqa_decode_end(AVCodecContext *avctx)
 {
-    VqaContext *s = (VqaContext *)avctx->priv_data;
+    VqaContext *s = avctx->priv_data;
 
     av_free(s->codebook);
     av_free(s->next_codebook_buffer);