changeset 34692:a3c178a46634

Remove pointless check that used internals would fail always after the switch to encode2.
author reimar
date Tue, 28 Feb 2012 19:31:56 +0000
parents 65b8e2116c99
children 5367c50655c4
files libmpcodecs/ve_lavc.c libmpcodecs/vf_lavc.c
diffstat 2 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Tue Feb 28 19:30:48 2012 +0000
+++ b/libmpcodecs/ve_lavc.c	Tue Feb 28 19:31:56 2012 +0000
@@ -679,11 +679,6 @@
     }
     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)
--- a/libmpcodecs/vf_lavc.c	Tue Feb 28 19:30:48 2012 +0000
+++ b/libmpcodecs/vf_lavc.c	Tue Feb 28 19:31:56 2012 +0000
@@ -79,11 +79,6 @@
 	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);
 }