On Thu, Dec 15, 2011 at 12:30:38PM -0800, Ronald S. Bultje wrote:
> +#if !UNCHECKED_BITSTREAM_READER
> +    s->size_in_bits_plus1 = bit_size + 1;
> +#endif
 One extra bit will ensure that get_bit_count() will return < 0 value,
but it does not ensure that get_bits/show_bits like functions or macros
return 0 on overread, and so it is incompatible with get_vlc* functions
(you will have an infinite loop, at least it was like that when I last
check this solution).

-- 
fenrir

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to