]> git.tuebingen.mpg.de Git - paraslash.git/commit
flacdec: Fix DECODER_ABORTED handling.
authorAndre Noll <maan@systemlinux.org>
Tue, 3 Sep 2013 22:26:57 +0000 (22:26 +0000)
committerAndre Noll <maan@systemlinux.org>
Sun, 27 Oct 2013 08:40:10 +0000 (09:40 +0100)
commit6da1cac0d9094a0f1869c95f0a65bc49b17544f6
tree541b00ac8080bc51741323696c294c524852634e
parent76a2c8cdd49d77ab9fa0db42b0a70428fdafd0a2
flacdec: Fix DECODER_ABORTED handling.

If the flac read callback is called with too little data available
in the input queue to decode a single frame, we abort the decoder
and call FLAC__stream_decoder_flush() afterwards. This discards the
partially submitted frame so we must feed these data again when more
input is available.

However, we currently miss to do so, resulting in all sorts of
flac errors.  This patch sets ->unconsumed to zero which fixes the bug.
flacdec_filter.c