summaryrefslogtreecommitdiff
path: root/Tools/schnitt/getpreviframe.pl
blob: 4829304c35c3cab844968798767690fd33b2c841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/perl

require "/usr/local/bin/my/schnittcommon.pli";

if (!open (INDEX,"index.vdr"))
  {
    exit 1;
  }
$index = $oindex = $ARGV[0];
if ($index > 0)
{
  &prevI;
  if ($oindex != $index)
    {
      print "$index\n";
    }
  else
    {
      print "$oindex\n";
    }
}
else
{
  print "0\n";
}