changeset 31926:45966266392b

Remove pointless casts of avcodec_find_decoder_by_name() return value. avcodec_find_decoder_by_name() already returns AVCodec*, so there is no need to cast the return value to this type.
author diego
date Sun, 22 Aug 2010 23:38:40 +0000
parents 616375aefdda
children 6e0b5a97e00f
files libmpcodecs/ad_ffmpeg.c libmpcodecs/vd_ffmpeg.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_ffmpeg.c	Sat Aug 21 16:04:18 2010 +0000
+++ b/libmpcodecs/ad_ffmpeg.c	Sun Aug 22 23:38:40 2010 +0000
@@ -101,7 +101,7 @@
       avcodec_initialized=1;
     }
 
-    lavc_codec = (AVCodec *)avcodec_find_decoder_by_name(sh_audio->codec->dll);
+    lavc_codec = avcodec_find_decoder_by_name(sh_audio->codec->dll);
     if(!lavc_codec){
 	mp_msg(MSGT_DECAUDIO,MSGL_ERR,MSGTR_MissingLAVCcodec,sh_audio->codec->dll);
 	return 0;
--- a/libmpcodecs/vd_ffmpeg.c	Sat Aug 21 16:04:18 2010 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Aug 22 23:38:40 2010 +0000
@@ -264,7 +264,7 @@
         return 0;
     memset(ctx, 0, sizeof(vd_ffmpeg_ctx));
 
-    lavc_codec = (AVCodec *)avcodec_find_decoder_by_name(sh->codec->dll);
+    lavc_codec = avcodec_find_decoder_by_name(sh->codec->dll);
     if(!lavc_codec){
         mp_msg(MSGT_DECVIDEO, MSGL_ERR, MSGTR_MissingLAVCcodec, sh->codec->dll);
         uninit(sh);