changeset 34691:65b8e2116c99

Remove pointless casts.
author reimar
date Tue, 28 Feb 2012 19:30:48 +0000
parents eeb74ce15120
children a3c178a46634
files libmpcodecs/ve_lavc.c libmpcodecs/vf_lavc.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Mon Feb 27 22:09:34 2012 +0000
+++ b/libmpcodecs/ve_lavc.c	Tue Feb 28 19:30:48 2012 +0000
@@ -1018,7 +1018,7 @@
 
     init_avcodec();
 
-    vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name(lavc_param_vcodec);
+    vf->priv->codec = avcodec_find_encoder_by_name(lavc_param_vcodec);
     if (!vf->priv->codec) {
 	mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, lavc_param_vcodec);
 	return 0;
--- a/libmpcodecs/vf_lavc.c	Mon Feb 27 22:09:34 2012 +0000
+++ b/libmpcodecs/vf_lavc.c	Tue Feb 28 19:30:48 2012 +0000
@@ -142,7 +142,7 @@
 
     init_avcodec();
 
-    vf->priv->codec = (AVCodec *)avcodec_find_encoder_by_name("mpeg1video");
+    vf->priv->codec = avcodec_find_encoder_by_name("mpeg1video");
     if (!vf->priv->codec) {
 	mp_msg(MSGT_MENCODER,MSGL_ERR,MSGTR_MissingLAVCcodec, "mpeg1video");
 	return 0;