[MPlayer-cvslog] CVS: main mencoder.c,1.263,1.264
Reynaldo H. Verdejo CVS
syncmail at mplayerhq.hu
Tue Feb 22 16:13:30 CET 2005
CVS change done by Reynaldo H. Verdejo CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv18422
Modified Files:
mencoder.c
Log Message:
fix missing check against lame_init_params that was leading to video only files on low (under 32) audio bitrates
Index: mencoder.c
===================================================================
RCS file: /cvsroot/mplayer/main/mencoder.c,v
retrieving revision 1.263
retrieving revision 1.264
diff -u -r1.263 -r1.264
--- mencoder.c 21 Feb 2005 23:18:31 -0000 1.263
+++ mencoder.c 22 Feb 2005 15:13:27 -0000 1.264
@@ -1110,7 +1110,10 @@
lame_presets_set(lame,lame_param_fast, (lame_param_vbr==0), lame_param_preset);
}
#endif
-lame_init_params(lame);
+if(lame_init_params(lame) == -1){
+ mp_msg(MSGT_MENCODER, MSGL_FATAL, MSGTR_LameCantInit);
+ mencoder_exit(1,NULL);
+}
if(verbose>0){
lame_print_config(lame);
lame_print_internals(lame);
More information about the MPlayer-cvslog
mailing list