ttadec: fix last frame handling when seeking
authorJustin Ruggles <justin.ruggles@gmail.com>
Fri, 10 Feb 2012 22:51:11 +0000 (17:51 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sat, 22 Dec 2012 19:45:35 +0000 (14:45 -0500)
commit5778299c7ed3f82c624589bd35c82f597a8e0b64
treeb53afd8af21f683f7d53e830a52717e67119e2e4
parent68a04b0ccee66f57516e129dd3ec457fd50b4bec
ttadec: fix last frame handling when seeking

Using a frame count, as is done currently, does not work at all with
seeking. Instead, when the number of samples in the final frame has
been decoded, we check if only the 32-bit CRC is remaining. If so, we
assume that it is the final frame.

There is no longer a need to keep total_frames in TTAContext.
libavcodec/tta.c