summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-08-22 23:38:40 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:15:49 +0200
commit740c927976829942cd71c7c6a93c348a6091868c (patch)
tree85e013901bf0c79e62ca27e7ad7479cb2cc908ca
parent0e825956328d785c07bb0799c7be7613a39f2ca3 (diff)
downloadmpv-740c927976829942cd71c7c6a93c348a6091868c.tar.bz2
mpv-740c927976829942cd71c7c6a93c348a6091868c.tar.xz
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
-rw-r--r--libmpcodecs/ad_ffmpeg.c2
-rw-r--r--libmpcodecs/vd_ffmpeg.c2
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);