[Ffmpeg-devel] wavpack decode bad data_size return in some case
Tue Mar 20 06:42:57 CET 2007
On Mon, Mar 19, 2007 at 07:32:03PM +0100, Reimar D?ffinger wrote:
> currently wavpack decoding in some cases may return with a non-error
> value but without setting data_size.
That's empty block at the end (no samples but with MD5 checksum for the
> This is esp. a problem since decode_audio2 was introduced, since now the
> decoding application will think that the whole buffer was filled with
> decoded data, but in reality nothing was decoded.
> A sample is click-sound.wv in incoming, the corresponding .txt explains
> how to hear the problem with MPlayer and -ao pcm, with ffmpeg the
> decoded file only got longer.
> Attached patch is one way to fix.
Fixed slightly differently.
> Reimar D?ffinger
More information about the ffmpeg-devel