# HG changeset patch # User bcoudurier # Date 1234072990 0 # Node ID 153d7e5d5a5b8e9204392a76d4b77d8a2be3015e # Parent 1a6581522f9abbb0847af0e7e81c3d1d79e5d3f9 remove useless cast, it does not remove warning, encode prototype must be changed diff -r 1a6581522f9a -r 153d7e5d5a5b utils.c --- a/utils.c Sun Feb 08 05:49:42 2009 +0000 +++ b/utils.c Sun Feb 08 06:03:10 2009 +0000 @@ -471,7 +471,7 @@ return -1; } if((avctx->codec->capabilities & CODEC_CAP_DELAY) || samples){ - int ret = avctx->codec->encode(avctx, buf, buf_size, (void *)samples); + int ret = avctx->codec->encode(avctx, buf, buf_size, samples); avctx->frame_number++; return ret; }else @@ -488,7 +488,7 @@ if(avcodec_check_dimensions(avctx,avctx->width,avctx->height)) return -1; if((avctx->codec->capabilities & CODEC_CAP_DELAY) || pict){ - int ret = avctx->codec->encode(avctx, buf, buf_size, (void *)pict); + int ret = avctx->codec->encode(avctx, buf, buf_size, pict); avctx->frame_number++; emms_c(); //needed to avoid an emms_c() call before every return; @@ -501,7 +501,7 @@ const AVSubtitle *sub) { int ret; - ret = avctx->codec->encode(avctx, buf, buf_size, (void *)sub); + ret = avctx->codec->encode(avctx, buf, buf_size, sub); avctx->frame_number++; return ret; }