summaryrefslogtreecommitdiff
path: root/Tools/schnitt/getpreviframe.pl
blob: 6774f3192b614ae66b10e493f284b7f3b7ba0968 (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
26
27
28
29
30
31
#!/usr/bin/perl

use strict;

my ($index, $oindex);

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";
}