Mercurial > libavcodec.hg
diff dv.c @ 1904:129236143f2e libavcodec
warning patrol
| author | mellum |
|---|---|
| date | Wed, 24 Mar 2004 23:32:48 +0000 |
| parents | e5687117cc7f |
| children | 2761950695cc |
line wrap: on
line diff
--- a/dv.c Mon Mar 22 20:54:04 2004 +0000 +++ b/dv.c Wed Mar 24 23:32:48 2004 +0000 @@ -113,7 +113,7 @@ return -ENOMEM; } for (i=0; i<12*27; i++) - (int)dv_anchor[i] = i; + dv_anchor[i] = (void*)(size_t)i; /* NOTE: as a trick, we use the fact the no codes are unused to accelerate the parsing of partial codes */ @@ -896,7 +896,7 @@ static int dv_decode_mt(AVCodecContext *avctx, void* sl) { DVVideoContext *s = avctx->priv_data; - int slice = (int)sl; + int slice = (size_t)sl; dv_decode_video_segment(s, &s->buf[((slice/27)*6+(slice/3)+slice*5+7)*80], &s->sys->video_place[slice*5]); return 0; @@ -905,7 +905,7 @@ static int dv_encode_mt(AVCodecContext *avctx, void* sl) { DVVideoContext *s = avctx->priv_data; - int slice = (int)sl; + int slice = (size_t)sl; dv_encode_video_segment(s, &s->buf[((slice/27)*6+(slice/3)+slice*5+7)*80], &s->sys->video_place[slice*5]); return 0;
