Mercurial > mplayer.hg
comparison libmpcodecs/ve_lavc.c @ 13406:2f69854dfbe4
10l: Make turbo mode compatible with 3-pass encoding
author | gpoirier |
---|---|
date | Mon, 20 Sep 2004 20:07:29 +0000 |
parents | d8ba5b72fc6c |
children | 8f12e583f50b |
comparison
equal
deleted
inserted
replaced
13405:bb1052826a89 | 13406:2f69854dfbe4 |
---|---|
666 stats_file= fopen(passtmpfile, "wb"); | 666 stats_file= fopen(passtmpfile, "wb"); |
667 if(stats_file==NULL){ | 667 if(stats_file==NULL){ |
668 mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); | 668 mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile); |
669 return 0; | 669 return 0; |
670 } | 670 } |
671 if(lavc_param_turbo) { | 671 if(lavc_param_turbo && (lavc_param_vpass == 1)) { |
672 /* uses SAD comparison functions instead of other hungrier */ | 672 /* uses SAD comparison functions instead of other hungrier */ |
673 lavc_venc_context->me_pre_cmp = 0; | 673 lavc_venc_context->me_pre_cmp = 0; |
674 lavc_venc_context->me_cmp = 0; | 674 lavc_venc_context->me_cmp = 0; |
675 lavc_venc_context->me_sub_cmp = 0; | 675 lavc_venc_context->me_sub_cmp = 0; |
676 lavc_venc_context->mb_cmp = 2; | 676 lavc_venc_context->mb_cmp = 2; |