Enlarged command buffer, mencoder option size. Fixed bug if variable name is unrecognized.

This commit is contained in:
n-a-c-h
2006-02-26 02:59:50 +00:00
parent 0d7dbfb47d
commit 6db771067d
2 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,6 @@ md_prog times 50 db "mencoder"
md_raw times 100 db "-demuxer rawvideo -rawvideo format=0x42475218:w=256:h=224:size=172032" md_raw times 100 db "-demuxer rawvideo -rawvideo format=0x42475218:w=256:h=224:size=172032"
md_other times 50 db "-aspect 4/3 -mc 0 -nosound" md_other times 50 db "-aspect 4/3 -mc 0 -nosound"
md_file times 50 db "video.avi" md_file times 50 db "video.avi"
md_uncompressed times 125 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc copy -o $md_file -" md_uncompressed times 150 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc copy -o $md_file -"
md_x264 times 125 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc x264 -x264encopts qp_constant=0:frameref=15 -o $md_file -" md_x264 times 150 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc x264 -x264encopts qp_constant=0:frameref=15 -o $md_file -"
md_ffv1 times 125 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc lavc -lavcopts vcodec=ffv1:vstrict=-2 -o $md_file -" md_ffv1 times 150 db "$md_prog $md_other $md_raw:fps=$md_video_rate -ovc lavc -lavcopts vcodec=ffv1:vstrict=-2 -o $md_file -"

View File

@@ -1884,13 +1884,14 @@ static char *pick_var(char **str)
*str += strlen("$md_video_rate"); *str += strlen("$md_video_rate");
return(romispal ? md_pal : md_ntsc); return(romispal ? md_pal : md_ntsc);
} }
*str += strlen(*str);
fprintf(stderr, "Unknown Variable: %s", *str); fprintf(stderr, "Unknown Variable: %s", *str);
return(""); return("");
} }
FILE *open_movie_file() FILE *open_movie_file()
{ {
char command[400], *p, *var; char command[450], *p, *var;
read_movie_vars("zmovie.cfg"); read_movie_vars("zmovie.cfg");
*command = 0; *command = 0;