[FFmpeg-devel] [PATCH] alac: validate k before using show_bits in decode_scalar
andreas.cadhalpun at googlemail.com
Thu Apr 23 20:53:29 CEST 2015
On 23.04.2015 16:37, Michael Niedermayer wrote:
> On Wed, Apr 22, 2015 at 06:24:54PM +0200, Andreas Cadhalpun wrote:
>> The k != 1 case calls show_bits(gb, k), which doesn't make sense if k
>> is 0.
> i dont think k = 0 is allowed
> i suggest you check rice_limit when it is set, i assume that is the
> source of k=0
> asking for a sample with rice_limit=0 if it occurs is also a good idea
OK, new patch attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1111 bytes
Desc: not available
More information about the ffmpeg-devel