add casts to silence gcc warnings

Originally committed as revision 18806 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-05-13 00:32:46 +00:00
parent 03e4f1ed7f
commit 520ca5032a
1 changed files with 3 additions and 3 deletions

View File

@ -54,9 +54,9 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
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;