aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-30 09:05:24 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2009-05-30 09:05:24 +0000
commitb157e3e56bca48bd0325f6e8425a52b9821f1380 (patch)
treefe23ffb92280499cfc12b6bbc965feaf328a5bdc /libavcodec
parent9291fdf7bcaaa09bee752f16761d0b26d88ebfa3 (diff)
downloadffmpeg-b157e3e56bca48bd0325f6e8425a52b9821f1380.tar.gz
Add casts to v210x decoder to avoid warnings.
Originally committed as revision 18994 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/v210x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/v210x.c b/libavcodec/v210x.c
index b944666d3e..754b70a1f0 100644
--- a/libavcodec/v210x.c
+++ b/libavcodec/v210x.c
@@ -42,7 +42,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
int y=0;
int width= avctx->width;
AVFrame *pic= avctx->coded_frame;
- const uint32_t *src= avpkt->data;
+ const uint32_t *src= (const uint32_t *)avpkt->data;
uint16_t *ydst, *udst, *vdst, *yend;
if(pic->data[0])
@@ -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;
- ydst= pic->data[0];
- udst= pic->data[1];
- vdst= pic->data[2];
+ ydst= (uint16_t *)pic->data[0];
+ udst= (uint16_t *)pic->data[1];
+ vdst= (uint16_t *)pic->data[2];
yend= ydst + width;
pic->pict_type= FF_I_TYPE;
pic->key_frame= 1;