summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorFalk Hüffner <mellum@users.sourceforge.net>2004-03-24 23:32:48 +0000
committerFalk Hüffner <mellum@users.sourceforge.net>2004-03-24 23:32:48 +0000
commit7906085fcc33feb5a0c617f5e01065bb9d0caa86 (patch)
tree830c3feb8c2c6333c5581ab5ae54d06ff267cc7d /libavcodec/dv.c
parentd957696f173ab3c9f222ab097669ed8f0b3951c2 (diff)
warning patrol
Originally committed as revision 2925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c6
1 files changed, 3 insertions, 3 deletions
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;