shorten: fix end-of-stream decoding.
authorJustin Ruggles <justin.ruggles@gmail.com>
Sat, 17 Sep 2011 01:34:42 +0000 (21:34 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 20 Oct 2011 17:09:46 +0000 (13:09 -0400)
commit1baa25c7dae0b43f0ff845f8ab4a94bf15b02440
tree72c3284ffcfbdcea56ea5217750f3bfe7d0666d0
parentd03f9f65c090e29cfae5658e0a2e450b0e780346
shorten: fix end-of-stream decoding.

enable CODEC_CAP_DELAY to flush any remaining frames in the buffer.

Stop decoding when the FN_QUIT command is found so that a trailing seek table
isn't decoded as a normal frame.

decode all channels in the same call to avcodec_decode_audio3() so that
decoding will not stop after the first channel of the last frame.

Updated FATE reference. More valid audio is now decoded.
libavcodec/shorten.c
tests/ref/fate/lossless-shortenaudio