From 740c927976829942cd71c7c6a93c348a6091868c Mon Sep 17 00:00:00 2001 From: diego Date: Sun, 22 Aug 2010 23:38:40 +0000 Subject: ad_ffmpeg, vd_ffmpeg: remove pointless casts 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32007 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ad_ffmpeg.c | 2 +- libmpcodecs/vd_ffmpeg.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmpcodecs/ad_ffmpeg.c b/libmpcodecs/ad_ffmpeg.c index 6d27a314f6..6b7ca97885 100644 --- a/libmpcodecs/ad_ffmpeg.c +++ b/libmpcodecs/ad_ffmpeg.c @@ -105,7 +105,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_tmsg(MSGT_DECAUDIO,MSGL_ERR,"Cannot find codec '%s' in libavcodec...\n",sh_audio->codec->dll); return 0; diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 71a3c66584..9cefcad065 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -177,7 +177,7 @@ static int init(sh_video_t *sh){ ctx->last_sample_aspect_ratio = (AVRational){0, 1}; - 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_tmsg(MSGT_DECVIDEO, MSGL_ERR, "Cannot find codec '%s' in libavcodec...\n", sh->codec->dll); uninit(sh); -- cgit v1.2.3