diff options
author | Tom Rondeau | 2012-12-04 18:36:35 -0500 |
---|---|---|
committer | Tom Rondeau | 2012-12-04 18:36:35 -0500 |
commit | 611959d2f9af4595200186acf85a64f5bf318fac (patch) | |
tree | 06d9bbd954d245195cd75c346643ceded4040591 /gr-utils/src | |
parent | 13139bb7dff0d543dfdb2cdaaa684a9fc5800cae (diff) | |
download | gnuradio-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_metadata | 5 |
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" |