vorbisdec: Accept 0 amplitude_bits
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 24 Feb 2013 15:56:15 +0000 (16:56 +0100)
committerReinhard Tartler <siretart@tauware.de>
Tue, 26 Feb 2013 19:21:01 +0000 (20:21 +0100)
commitc6c4dc69354f72376708ded9bb56af4a58082f1d
treef9c07a6b86a6e08f8cafd8eb7354edd3efa5ad06
parent494ddd377ada76ed555f7a3f49391455daa099c9
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.
(cherry picked from commit 23bd9ef4b209c789d5473d75f89a2e411d343d80)

Conflicts:

libavcodec/vorbisdec.c
libavcodec/vorbisdec.c