3 open(FRAMES_FH, 'frames') || die 'Cannot open file "frames".';
6 # modify the INPUT stanza of a mpeg param file to reflect the actual input
8 $[ = 1; # set array base to 1
9 $, = ' '; # set output field separator
10 $\ = "\n"; # set output record separator
13 chop; # strip record separator
14 @Fld = split(' ', $_, 9999);
15 if (/^INPUT$/ .. /^END_INPUT$/) {
23 $_ = &Getline2('FRAMES_FH');
25 for ($i = 0; $i <= $frames; $i++) {
26 $file = sprintf('map-%d.gif', $i);
28 if ($size>300 && $size<10000) {
32 printf (("END_INPUT\n"));
36 if ($getline_ok = (($_ = <$fh>) ne '')) {
37 chop; # strip record separator
38 @Fld = split(' ', $_, 9999);