From 3681ff33f3d80665cef24995a6358ed7a73bdf69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tronel?= Date: Wed, 20 Dec 2023 10:05:52 +0100 Subject: [PATCH] Remove code that was here to debug the codec private data changes. --- removeads.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/removeads.py b/removeads.py index b6d1cd1..457719b 100755 --- a/removeads.py +++ b/removeads.py @@ -398,13 +398,6 @@ def changeCodecPrivateData(mkvinfo, inputFile, codecData): infd = inputFile.fileno() lseek(infd, 0, SEEK_SET) - output = open('save.mkv', 'w') - outfd = output.fileno() - save = read(infd, 10000000) - write(outfd, save) - close(outfd) - lseek(infd, 0, SEEK_SET) - currentLength = fstat(infd).st_size logger.info('Current size of file: %d' % currentLength) position, currentData = getCodecPrivateData(mkvinfo, inputFile)