From 7906085fcc33feb5a0c617f5e01065bb9d0caa86 Mon Sep 17 00:00:00 2001 From: Falk Hüffner Date: Wed, 24 Mar 2004 23:32:48 +0000 Subject: warning patrol Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libavcodec/dv.c') diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 6b7ca1d8d2..22d966dd8d 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -113,7 +113,7 @@ static int dvvideo_init(AVCodecContext *avctx) 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 inline void dv_encode_video_segment(DVVideoContext *s, 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_decode_mt(AVCodecContext *avctx, void* sl) 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; -- cgit v1.2.3