Fix bug in frame decompress example
authorCedric De Brito <cdebrito@nvidia.com>
Mon, 2 Jul 2018 12:35:04 +0000 (14:35 +0200)
committerCedric De Brito <cdebrito@nvidia.com>
Mon, 2 Jul 2018 12:35:04 +0000 (14:35 +0200)
commit98c0c7cf9d0f2429d01e614ebd1d63a6b356f31f
tree688b5944c581dd686d82128533e56fc1556c636d
parent1466e0b7f29176a1c1792ecc28fa64e29d5aaa69
Fix bug in frame decompress example

The decompression was failing as the srcEnd pointer in
decompress_file_internal was wrongly computed beyond
the end of the memory block.
We need to account for the fact that the header ("info")
was already read in the calling function ("alreadyConsumed").
examples/frameCompress.c