Mercurial > libavcodec.hg
comparison v210x.c @ 9735:2f804e0a17fc libavcodec
Add casts to v210x decoder to avoid warnings.
author | reimar |
---|---|
date | Sat, 30 May 2009 09:05:24 +0000 |
parents | 4a4929da4ddc |
children | 2bb3882075b6 |
comparison
equal
deleted
inserted
replaced
9734:a7a5ffa5774b | 9735:2f804e0a17fc |
---|---|
40 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) | 40 static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
41 { | 41 { |
42 int y=0; | 42 int y=0; |
43 int width= avctx->width; | 43 int width= avctx->width; |
44 AVFrame *pic= avctx->coded_frame; | 44 AVFrame *pic= avctx->coded_frame; |
45 const uint32_t *src= avpkt->data; | 45 const uint32_t *src= (const uint32_t *)avpkt->data; |
46 uint16_t *ydst, *udst, *vdst, *yend; | 46 uint16_t *ydst, *udst, *vdst, *yend; |
47 | 47 |
48 if(pic->data[0]) | 48 if(pic->data[0]) |
49 avctx->release_buffer(avctx, pic); | 49 avctx->release_buffer(avctx, pic); |
50 | 50 |
59 | 59 |
60 pic->reference= 0; | 60 pic->reference= 0; |
61 if(avctx->get_buffer(avctx, pic) < 0) | 61 if(avctx->get_buffer(avctx, pic) < 0) |
62 return -1; | 62 return -1; |
63 | 63 |
64 ydst= pic->data[0]; | 64 ydst= (uint16_t *)pic->data[0]; |
65 udst= pic->data[1]; | 65 udst= (uint16_t *)pic->data[1]; |
66 vdst= pic->data[2]; | 66 vdst= (uint16_t *)pic->data[2]; |
67 yend= ydst + width; | 67 yend= ydst + width; |
68 pic->pict_type= FF_I_TYPE; | 68 pic->pict_type= FF_I_TYPE; |
69 pic->key_frame= 1; | 69 pic->key_frame= 1; |
70 | 70 |
71 for(;;){ | 71 for(;;){ |