[MPlayer-cvslog] r32007 - in trunk/libmpcodecs: ad_ffmpeg.c vd_ffmpeg.c
diego
subversion at mplayerhq.hu
Mon Aug 23 01:38:41 CEST 2010
Author: diego
Date: Mon Aug 23 01:38:40 2010
New Revision: 32007
Log:
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.
Modified:
trunk/libmpcodecs/ad_ffmpeg.c
trunk/libmpcodecs/vd_ffmpeg.c
Modified: trunk/libmpcodecs/ad_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/ad_ffmpeg.c Sat Aug 21 18:04:18 2010 (r32006)
+++ trunk/libmpcodecs/ad_ffmpeg.c Mon Aug 23 01:38:40 2010 (r32007)
@@ -101,7 +101,7 @@ static int init(sh_audio_t *sh_audio)
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;
Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c Sat Aug 21 18:04:18 2010 (r32006)
+++ trunk/libmpcodecs/vd_ffmpeg.c Mon Aug 23 01:38:40 2010 (r32007)
@@ -264,7 +264,7 @@ static int init(sh_video_t *sh){
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);
More information about the MPlayer-cvslog
mailing list