Mercurial > mplayer.hg
diff libmpcodecs/vd_ffmpeg.c @ 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 | 0ccd18ec15c3 |
children | 2b390c08ed07 |
line wrap: on
line diff
--- 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);