[FFmpeg-cvslog] r17044 - trunk/libavcodec/utils.c

bcoudurier subversion
Sun Feb 8 07:03:10 CET 2009


Author: bcoudurier
Date: Sun Feb  8 07:03:10 2009
New Revision: 17044

Log:
remove useless cast, it does not remove warning, encode prototype must be changed

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Sun Feb  8 06:49:42 2009	(r17043)
+++ trunk/libavcodec/utils.c	Sun Feb  8 07:03:10 2009	(r17044)
@@ -471,7 +471,7 @@ int attribute_align_arg avcodec_encode_a
         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_v
     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(AVCodecConte
                             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;
 }




More information about the ffmpeg-cvslog mailing list