summaryrefslogtreecommitdiff
path: root/libavcodec/v210dec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-13 00:27:11 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-05-13 00:27:11 +0000
commit03e4f1ed7fa8f24a8b94db310fbb910365fa8c61 (patch)
tree9cb40786213795a8c513c70495dc69b043aa2d62 /libavcodec/v210dec.c
parente19f995263f5b38756b020c39906f33949d69b4b (diff)
add casts to silence gcc warnings
Originally committed as revision 18805 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/v210dec.c')
-rw-r--r--libavcodec/v210dec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/v210dec.c b/libavcodec/v210dec.c
index da23ec43b9..7e7f944b2c 100644
--- a/libavcodec/v210dec.c
+++ b/libavcodec/v210dec.c
@@ -61,9 +61,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
if (avctx->get_buffer(avctx, pic) < 0)
return -1;
- y = pic->data[0];
- u = pic->data[1];
- v = pic->data[2];
+ y = (uint16_t*)pic->data[0];
+ u = (uint16_t*)pic->data[1];
+ v = (uint16_t*)pic->data[2];
pic->pict_type = FF_I_TYPE;
pic->key_frame = 1;
@@ -76,7 +76,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
} while (0);
for (h = 0; h < avctx->height; h++) {
- const uint32_t *src = psrc;
+ const uint32_t *src = (const uint32_t*)psrc;
uint32_t val;
for (w = 0; w < avctx->width - 5; w += 6) {
READ_PIXELS(u, y, v);