[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.73,1.74

Sascha Sommer CVS faust3 at mplayerhq.hu
Fri Sep 19 20:45:26 CEST 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv18367/libmpcodecs

Modified Files:
	ve_lavc.c 
Log Message:
fix 2-pass encoding with libavcodec onwin32, patch by Tristan Seligmann <mithrandi-mplayer-dev-eng at mithrandi.za.net>

Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- ve_lavc.c	11 Sep 2003 07:09:25 -0000	1.73
+++ ve_lavc.c	19 Sep 2003 18:45:02 -0000	1.74
@@ -504,7 +504,7 @@
     switch(lavc_param_vpass){
     case 1: 
 	lavc_venc_context->flags|= CODEC_FLAG_PASS1; 
-	stats_file= fopen(passtmpfile, "w");
+	stats_file= fopen(passtmpfile, "wb");
 	if(stats_file==NULL){
 	    mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
             return 0;
@@ -512,7 +512,7 @@
 	break;
     case 2:
 	lavc_venc_context->flags|= CODEC_FLAG_PASS2; 
-	stats_file= fopen(passtmpfile, "r");
+	stats_file= fopen(passtmpfile, "rb");
 	if(stats_file==NULL){
 	    mp_msg(MSGT_MENCODER,MSGL_ERR,"2pass failed: filename=%s\n", passtmpfile);
             return 0;



More information about the MPlayer-cvslog mailing list