ape: calculate final packet size instead of guessing
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 4 Feb 2012 22:01:03 +0000 (17:01 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 6 Feb 2012 18:22:01 +0000 (13:22 -0500)
commitac3f8d317c5d1e78340b57ebd2b5c1317e175bc2
tree3994bd897b623401282db8affa187cddc7a07de8
parentc2c316158fb670f61abfa108cb940ba31264b0f8
ape: calculate final packet size instead of guessing

Calculates based on total file size and wavetaillength from the header.
Falls back to multiplying finalframeblocks by 8 instead of 4 so that it will
at least be overestimating for 24-bit. Currently it can underestimate the
final packet size, leading to decoding errors.
libavformat/ape.c