diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-13 00:32:46 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-05-13 00:32:46 +0000 |
commit | 520ca5032a91d6cf087d41bf38cd1a5c2e219efb (patch) | |
tree | c10966578368b477b686ae250cbe65090179da63 /libavcodec/v210enc.c | |
parent | 03e4f1ed7fa8f24a8b94db310fbb910365fa8c61 (diff) | |
download | ffmpeg-520ca5032a91d6cf087d41bf38cd1a5c2e219efb.tar.gz |
add casts to silence gcc warnings
Originally committed as revision 18806 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/v210enc.c')
-rw-r--r-- | libavcodec/v210enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/v210enc.c b/libavcodec/v210enc.c index 8bbd720918..ccff9728e0 100644 --- a/libavcodec/v210enc.c +++ b/libavcodec/v210enc.c @@ -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; |