Fix missing calls to getTSFrame.
This commit is contained in:
@@ -846,8 +846,12 @@ def main():
|
|||||||
logger.info("Found %d frames between beginning of current part and first I-frame" % nbHeadFrames)
|
logger.info("Found %d frames between beginning of current part and first I-frame" % nbHeadFrames)
|
||||||
logger.info("Found %d frames between last I-frame and end of current part" % nbTailFrames)
|
logger.info("Found %d frames between last I-frame and end of current part" % nbTailFrames)
|
||||||
|
|
||||||
headIFrameTS = timedelta(seconds=float(headIFrame['pts_time']))
|
headIFrameTS = getTSFrame(headIFrame)
|
||||||
tailIFrameTS = timedelta(seconds=float(tailIFrame['pts_time']))
|
if headIFrameTS == None:
|
||||||
|
exit(-1)
|
||||||
|
tailIFrameTS = getTSFrame(tailIFrame)
|
||||||
|
if tailIFrameTS == None:
|
||||||
|
exit(-1)
|
||||||
|
|
||||||
checks.append(pos+headIFrameTS-ts1)
|
checks.append(pos+headIFrameTS-ts1)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user