avformat/avidec: Fix incorrect detection of badly interleaved avi