[Ffmpeg-devel] [BUG] AVI demuxing fails if padding stream is present

Kostya kostya.shishkov
Mon Apr 3 05:06:15 CEST 2006

Recently I tried to open AVIs with KMVC codec and FFmpeg (fresh CVS) failed
to open file at all. Old build 4747 opens it fine. Problem seems to be that
those files have additional padding stream (chunk 'strh' 'pads'). When I
edit file setting them to 'JUNK' (which they are :) ) everything works fine.

I tracked problem to this point:
FFmpeg fails at checking number of streams (avidec.c, line 441):
 if (stream_index != s->nb_streams - 1) { ...
 Both stream_index and s->nb_streams = 2 there.

Problematic samples:

More information about the ffmpeg-devel mailing list