Mercurial > libavcodec.hg
changeset 9735:2f804e0a17fc libavcodec
Add casts to v210x decoder to avoid warnings.
author | reimar |
---|---|
date | Sat, 30 May 2009 09:05:24 +0000 |
parents | a7a5ffa5774b |
children | 405cbc435997 |
files | v210x.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/v210x.c Sat May 30 04:07:14 2009 +0000 +++ b/v210x.c Sat May 30 09:05:24 2009 +0000 @@ -42,7 +42,7 @@ 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 @@ 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;