[FFmpeg-devel] init_vlc_spare failing in huffyuv decoder, how to fix?

Loren Merritt lorenm
Sun Jul 5 01:59:27 CEST 2009


On Sat, 4 Jul 2009, Reimar D?ffinger wrote:

> when decoding the smclockhuffyuv.avi.1.205 file from issue 1240 there is
> a crash because (once more) the VLC tables 3,4 and 5 are NULL.
> The reason is that init_vlc_sparse in generate_joint_tables fails.
> Since that function "returns" void, does that mean that the bug is
> elsewhere and it should never fail or are there just a lot of checks for
> all those init_vlc* functions missing?

init_vlc_sparse can fail, but generate_joint_tables shouldn't give it 
inputs that would fail, regardless of the stream contents. What actually 
happened is that memory corruption changed the huffman tables after they 
were validity-checked.

fixed.

--Loren Merritt



More information about the ffmpeg-devel mailing list