# HG changeset patch # User diego # Date 1282520320 0 # Node ID 45966266392bf784e7d842d7d8115f37ab5b963c # Parent 616375aefddafe58e6d79985c1dca5159abead93 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. diff -r 616375aefdda -r 45966266392b libmpcodecs/ad_ffmpeg.c --- 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; diff -r 616375aefdda -r 45966266392b libmpcodecs/vd_ffmpeg.c --- 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);