changeset 8756:153d7e5d5a5b libavcodec

remove useless cast, it does not remove warning, encode prototype must be changed
author bcoudurier
date Sun, 08 Feb 2009 06:03:10 +0000
parents 1a6581522f9a
children d529e239a510
files utils.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }