[FFmpeg-devel] [libav-devel] [PATCH] vorbisdec: avoid calling get_bits to read 0 bits

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jan 2 23:26:56 CET 2016


On 02.01.2016 23:03, Luca Barbato wrote:
> On 02/01/16 20:01, Andreas Cadhalpun wrote:
>> It's documented to only support reading 1-25 bits.
>>
>> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>
>> ---
>>   libavcodec/vorbisdec.c | 4 ++--
>>   1 file changed, 2 insertions(+), 2 deletions(-)
>>
> 
> When do we get in this situation?

I'm not sure what you mean.

The first one happens if bits is 0, e.g. because vc->audio_channels is 1.
The second one happens if rangebits is 0.

Best regards,
Andreas



More information about the ffmpeg-devel mailing list