[FFmpeg-cvslog] r18994 - trunk/libavcodec/v210x.c

reimar subversion
Sat May 30 11:05:25 CEST 2009


Author: reimar
Date: Sat May 30 11:05:24 2009
New Revision: 18994

Log:
Add casts to v210x decoder to avoid warnings.

Modified:
   trunk/libavcodec/v210x.c

Modified: trunk/libavcodec/v210x.c
==============================================================================
--- trunk/libavcodec/v210x.c	Sat May 30 08:16:44 2009	(r18993)
+++ trunk/libavcodec/v210x.c	Sat May 30 11:05:24 2009	(r18994)
@@ -42,7 +42,7 @@ static int decode_frame(AVCodecContext *
     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 *
     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;



More information about the ffmpeg-cvslog mailing list