diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-08 06:03:10 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-08 06:03:10 +0000 |
commit | 8eb027c83cb07a3841e560b867c25103461d47b7 (patch) | |
tree | 5db86ab70bb30e65beb30246562fb0c2d7844231 | |
parent | a7573719e52877a141c8869d000f86f65c24b693 (diff) | |
download | ffmpeg-8eb027c83cb07a3841e560b867c25103461d47b7.tar.gz |
remove useless cast, it does not remove warning, encode prototype must be changed
Originally committed as revision 17044 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index b1579aec3b..9720b9179b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -471,7 +471,7 @@ int attribute_align_arg avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf 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 @@ int attribute_align_arg avcodec_encode_video(AVCodecContext *avctx, uint8_t *buf 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 @@ int avcodec_encode_subtitle(AVCodecContext *avctx, uint8_t *buf, int buf_size, 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; } |