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

reimar subversion at mplayerhq.hu
Tue Feb 28 20:31:56 CET 2012


Author: reimar
Date: Tue Feb 28 20:31:56 2012
New Revision: 34780

Log:
Remove pointless check that used internals would fail always
after the switch to encode2.

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

Modified: trunk/libmpcodecs/ve_lavc.c
==============================================================================
--- trunk/libmpcodecs/ve_lavc.c	Tue Feb 28 20:30:48 2012	(r34779)
+++ trunk/libmpcodecs/ve_lavc.c	Tue Feb 28 20:31:56 2012	(r34780)
@@ -679,11 +679,6 @@ static int config(struct vf_instance *vf
     }
     av_dict_free(&opts);
 
-    if (lavc_venc_context->codec->encode == NULL) {
-	mp_msg(MSGT_MENCODER,MSGL_ERR,"avcodec init failed (ctx->codec->encode == NULL)!\n");
-	return 0;
-    }
-
     /* free second pass buffer, its not needed anymore */
     av_freep(&lavc_venc_context->stats_in);
     if(lavc_venc_context->bits_per_coded_sample)

Modified: trunk/libmpcodecs/vf_lavc.c
==============================================================================
--- trunk/libmpcodecs/vf_lavc.c	Tue Feb 28 20:30:48 2012	(r34779)
+++ trunk/libmpcodecs/vf_lavc.c	Tue Feb 28 20:31:56 2012	(r34780)
@@ -79,11 +79,6 @@ static int config(struct vf_instance *vf
 	return 0;
     }
 
-    if (lavc_venc_context.codec->encode == NULL) {
-	mp_msg(MSGT_MENCODER,MSGL_ERR,"avcodec init failed (ctx->codec->encode == NULL)!\n");
-	return 0;
-    }
-
     return vf_next_config(vf,width,height,d_width,d_height,flags,IMGFMT_MPEGPES);
 }
 


More information about the MPlayer-cvslog mailing list