Commit b157e3e5 authored by Reimar Döffinger's avatar Reimar Döffinger

Add casts to v210x decoder to avoid warnings.

Originally committed as revision 18994 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9291fdf7
...@@ -42,7 +42,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac ...@@ -42,7 +42,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
int y=0; int y=0;
int width= avctx->width; int width= avctx->width;
AVFrame *pic= avctx->coded_frame; 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; uint16_t *ydst, *udst, *vdst, *yend;
if(pic->data[0]) if(pic->data[0])
...@@ -61,9 +61,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac ...@@ -61,9 +61,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
if(avctx->get_buffer(avctx, pic) < 0) if(avctx->get_buffer(avctx, pic) < 0)
return -1; return -1;
ydst= pic->data[0]; ydst= (uint16_t *)pic->data[0];
udst= pic->data[1]; udst= (uint16_t *)pic->data[1];
vdst= pic->data[2]; vdst= (uint16_t *)pic->data[2];
yend= ydst + width; yend= ydst + width;
pic->pict_type= FF_I_TYPE; pic->pict_type= FF_I_TYPE;
pic->key_frame= 1; pic->key_frame= 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment