summaryrefslogtreecommitdiff
path: root/gr-utils/src
diff options
context:
space:
mode:
authorTom Rondeau2012-12-04 18:36:35 -0500
committerTom Rondeau2012-12-04 18:36:35 -0500
commit611959d2f9af4595200186acf85a64f5bf318fac (patch)
tree06d9bbd954d245195cd75c346643ceded4040591 /gr-utils/src
parent13139bb7dff0d543dfdb2cdaaa684a9fc5800cae (diff)
downloadgnuradio-611959d2f9af4595200186acf85a64f5bf318fac.tar.gz
gnuradio-611959d2f9af4595200186acf85a64f5bf318fac.tar.bz2
gnuradio-611959d2f9af4595200186acf85a64f5bf318fac.zip
core: updated metadata structure to use relative header info.
Now the start tag info in the header is relative to the begining of the header (so, basically, the size of the header + extras).
Diffstat (limited to 'gr-utils/src')
-rw-r--r--gr-utils/src/python/gr_read_file_metadata5
1 files changed, 2 insertions, 3 deletions
diff --git a/gr-utils/src/python/gr_read_file_metadata b/gr-utils/src/python/gr_read_file_metadata
index 850c29ee7..ba530ca54 100644
--- a/gr-utils/src/python/gr_read_file_metadata
+++ b/gr-utils/src/python/gr_read_file_metadata
@@ -44,10 +44,9 @@ def main(filename):
except RuntimeError:
sys.stderr.write("Could not deserialize header: invalid or corrupt data file.\n")
sys.exit(1)
- #gr.pmt_print(header)
print "HEADER {0}".format(nheaders)
- info = parse_file_metadata.parse_header(header, hdr_start, True)
+ info = parse_file_metadata.parse_header(header, True)
if(info["extra_len"] > 0):
extra_str = handle.read(info["extra_len"])
@@ -64,7 +63,7 @@ def main(filename):
extra_info = parse_file_metadata.parse_extra_dict(extra, info, True)
nheaders += 1
- nread += info['nbytes'] + parse_file_metadata.HEADER_LENGTH + info["extra_len"] + 1
+ nread += info['nbytes'] + parse_file_metadata.HEADER_LENGTH + info["extra_len"]
handle.seek(nread, 0)
print "\n\n"