[MPlayer-cvslog] r34779 - in trunk/libmpcodecs: ve_lavc.c vf_lavc.c

reimar subversion at mplayerhq.hu
Tue Feb 28 20:30:49 CET 2012


Author: reimar
Date: Tue Feb 28 20:30:48 2012
New Revision: 34779

Log:
Remove pointless casts.

Modified:
   trunk/libmpcodecs/ve_lavc.c
   trunk/libmpcodecs/vf_lavc.c

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Mon Feb 27 23:09:34 2012	(r34778)
+++ trunk/libmpcodecs/ve_lavc.c	Tue Feb 28 20:30:48 2012	(r34779)
@@ -1018,7 +1018,7 @@ static int vf_open(vf_instance_t *vf, ch
 
     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;

Modified: trunk/libmpcodecs/vf_lavc.c
==============================================================================
--- trunk/libmpcodecs/vf_lavc.c	Mon Feb 27 23:09:34 2012	(r34778)
+++ trunk/libmpcodecs/vf_lavc.c	Tue Feb 28 20:30:48 2012	(r34779)
@@ -142,7 +142,7 @@ static int vf_open(vf_instance_t *vf, ch
 
     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;


More information about the MPlayer-cvslog mailing list