mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-03 02:10:41 +00:00
Style tweaks
Style stuff
This commit is contained in:
@@ -28,7 +28,7 @@ def parse_rf64(stream):
|
|||||||
#print("Found chunks64s:", length_lookup_table)
|
#print("Found chunks64s:", length_lookup_table)
|
||||||
|
|
||||||
for n in range(length_lookup_table):
|
for n in range(length_lookup_table):
|
||||||
bigname, bigsize = struct.unpack_from( chunksize64format , ds64data, offset= ds64_fields_size )
|
bigname, bigsize = struct.unpack_from( chunksize64format , ds64_data, offset= ds64_fields_size )
|
||||||
bigchunk_table[bigname] = bigsize
|
bigchunk_table[bigname] = bigsize
|
||||||
|
|
||||||
bigchunk_table[b'data'] = data_size
|
bigchunk_table[b'data'] = data_size
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ def parse_chunk(stream, rf64_context=None):
|
|||||||
data_size = rf64_context.bigchunk_table[ident]
|
data_size = rf64_context.bigchunk_table[ident]
|
||||||
|
|
||||||
displacement = data_size
|
displacement = data_size
|
||||||
if displacement % 2 is not 0:
|
if (displacement % 2) != 0:
|
||||||
displacement = displacement + 1
|
displacement = displacement + 1
|
||||||
|
|
||||||
if ident in [b'RIFF', b'LIST', b'RF64']:
|
if ident in [b'RIFF', b'LIST', b'RF64']:
|
||||||
|
|||||||
Reference in New Issue
Block a user