wavpackenc: reset trailer info on block encoding
authorChristophe Gisquet <christophe.gisquet@gmail.com>
Fri, 22 Aug 2014 09:31:45 +0000 (09:31 +0000)
committerPaul B Mahol <onemda@gmail.com>
Fri, 22 Aug 2014 18:44:16 +0000 (18:44 +0000)
commit4adad5a19ac85de69ced6b1d154344609ff4e493
tree95e6084986c972c17feb3aa90788663d03a8e068
parenta59f85d1064d5eeea9c0d6a4db8d0f4f76605d93
wavpackenc: reset trailer info on block encoding

In some cases, in particular if several blocks are needed because of
the channel layout (e.g. 2.1), the information used to write the
trailing bits terminating the sample data was not reset.

This would cause potential desync on the decoder, although decoded
samples were actually mostly fine.

Fixes ticket #3879.
libavcodec/wavpackenc.c