Skip to content

Commit

Permalink
oops, didn't get mtf per-frame adjustment right
Browse files Browse the repository at this point in the history
  • Loading branch information
happycube committed Oct 31, 2018
1 parent c0bbadc commit 3b0269f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lddecode_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1336,9 +1336,10 @@ def readframe(self, infile, sample, firstframe = False, CAV = False):
combined = None

self.vbi = self.mergevbi(fields)

if not f.vbi['isclv'] and f.vbi['framenr'] is not None:
newmtf = 1 - (f.vbi['framenr'] / 10000)

if not self.vbi['isclv'] and self.vbi['framenr'] is not None:
newmtf = 1 - (self.vbi['framenr'] / 10000)
print(newmtf)
if newmtf < 0:
newmtf = 0

Expand Down

0 comments on commit 3b0269f

Please sign in to comment.