OSDN Git Service

vorbisdec: Accept 0 amplitude_bits
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 24 Feb 2013 15:56:15 +0000 (16:56 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Mon, 25 Feb 2013 06:34:00 +0000 (07:34 +0100)
commit23bd9ef4b209c789d5473d75f89a2e411d343d80
tree008791b2fe1a0e0a0b5e7c815bd3993367e4ace0
parent5b47c19bfda92273ae49e83db26a565afcaed80a
vorbisdec: Accept 0 amplitude_bits

The specification does not prevent an encoder to write the amplitude 0
as 0 amplitude_bits.

Our get_bits() implementation might not support a zero sized read
properly, thus the additional branch.
libavcodec/vorbisdec.c