On Mon, Jul 18, 2016 at 07:50:36PM +0200, Luca Barbato wrote:
> --- a/libavcodec/bitstream.h
> +++ b/libavcodec/bitstream.h
> @@ -71,6 +71,15 @@ static inline void refill_32(BitstreamContext *bc)
>  
> +/* Make sure that the cache contains at least n bits */
> +static inline void bitstream_prefetch(BitstreamContext *bc, unsigned n)
> +{
> +    refill_32(bc);
> +
> +    if (bc->bits_left < n)
> +        refill_32(bc);
> +}

The first unconditional refill looks wrong.

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

Reply via email to