[libav-devel] [PATCH] Check for invalid VLC code in zeros_left before writing coefficients.

2012-12-07 Thread Ronald S. Bultje
From: Ronald S. Bultje rsbul...@gmail.com This prevents an invalid write into coeffs[scantable[-1]] if zeros_left itself was an invalid VLC code (and thus -1). --- libavcodec/h264_cavlc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libavcodec/h264_cavlc.c

Re: [libav-devel] [PATCH] Check for invalid VLC code in zeros_left before writing coefficients.

2012-12-07 Thread Luca Barbato
On 12/7/12 10:09 PM, Ronald S. Bultje wrote: From: Ronald S. Bultje rsbul...@gmail.com This prevents an invalid write into coeffs[scantable[-1]] if zeros_left itself was an invalid VLC code (and thus -1). --- libavcodec/h264_cavlc.c | 10 +- 1 file changed, 5 insertions(+), 5