|
|
|
@ -103,8 +103,10 @@ if ($mode eq 'framerate') {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
my $ssa = Subtitle::SSA->new(debug => !!$opts{loglevel}); |
|
|
|
|
if ($ssa->from_file($opts{infile}) < 0) { |
|
|
|
|
warn "Can't parse input file: $opts{infile}\n"; |
|
|
|
|
unless ($ssa->from_file($opts{infile})) { |
|
|
|
|
foreach my $line (@{ $ssa->{log} }) { |
|
|
|
|
print $line, "\n"; |
|
|
|
|
} |
|
|
|
|
exit 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|