# HG changeset patch # User bcoudurier # Date 1242174431 0 # Node ID ef0cf18b192d729fd17029d5547f433d68e2960a # Parent 3c98f3e1b7191711696b3182098a8a24f165e71c add casts to silence gcc warnings diff -r 3c98f3e1b719 -r ef0cf18b192d v210dec.c --- a/v210dec.c Tue May 12 23:40:22 2009 +0000 +++ b/v210dec.c Wed May 13 00:27:11 2009 +0000 @@ -61,9 +61,9 @@ 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 @@ } 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);