Re: [FFmpeg-devel] [PATCH] mjpegenc_huffman: fix uninitialized variable usage

2017-02-08 Thread Michael Niedermayer
On Wed, Feb 08, 2017 at 11:19:22PM +, Rostislav Pehlivanov wrote: > Happened when max_length == 0, in which case i wasn't set to 0 during > the first run. i is supposed to already be at the maximum size when the > max_length is 0. when / for what is max_length = 0 used ? maybe i misuderstand b

[FFmpeg-devel] [PATCH] mjpegenc_huffman: fix uninitialized variable usage

2017-02-08 Thread Rostislav Pehlivanov
Happened when max_length == 0, in which case i wasn't set to 0 during the first run. i is supposed to already be at the maximum size when the max_length is 0. Fixes CID1400146 Signed-off-by: Rostislav Pehlivanov --- libavcodec/mjpegenc_huffman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletio