Mercurial > libavcodec.hg
changeset 9631:4f1f36cca468 libavcodec
add casts to silence gcc warnings
author | bcoudurier |
---|---|
date | Wed, 13 May 2009 00:32:46 +0000 |
parents | ef0cf18b192d |
children | 31a033fae70e |
files | v210enc.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/v210enc.c Wed May 13 00:27:11 2009 +0000 +++ b/v210enc.c Wed May 13 00:32:46 2009 +0000 @@ -54,9 +54,9 @@ int aligned_width = ((avctx->width + 47) / 48) * 48; int stride = aligned_width * 8 / 3; int h, w; - const uint16_t *y = pic->data[0]; - const uint16_t *u = pic->data[1]; - const uint16_t *v = pic->data[2]; + const uint16_t *y = (const uint16_t*)pic->data[0]; + const uint16_t *u = (const uint16_t*)pic->data[1]; + const uint16_t *v = (const uint16_t*)pic->data[2]; uint8_t *p = buf; uint8_t *pdst = buf;