OSDN Git Service

wavpack: use context reset in appropriate places
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 2 Sep 2011 09:37:39 +0000 (11:37 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 5 Sep 2011 09:18:27 +0000 (11:18 +0200)
commit9bc4e21a9b7900f95d056ae0d450c104a9e80108
tree6d5f25c3b771a23dcff2787143090775f2f1cabe
parentdc26318c2dd05893843147d8c5b169bd2f498c61
wavpack: use context reset in appropriate places

This fixes improper flushing in the cases when the same frame is decoded in
several iterations (for being too large to fit into output buffer) and flush is
called mid-decoding and it also resets context in case of decoding errors.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/wavpack.c