* modules/demux/avi/avi.c: fix for a bug introduced during the demux2 api transition (courtesy of James MacLean).