[MPlayer-dev-eng] [PATCH] infinite loop setting NI mode in libmpdemux/demux_avi.c

Roberto Togni r_togni at tiscali.it
Fri Aug 12 21:26:11 CEST 2005


On Thu, 11 Aug 2005 07:32:09 +0200
Pavel Troller <patrol at sinus.cz> wrote:

> Hi!
>   Using CVS, I found that I cannot play some vids - a warning about
switching
> to -ni mode was being printed ad infinitum and nothing more happened.
>   I've found that this is probably due to the fact that the NI mode is
set
> automatically if a "badly interlaced file" is found but the index
position is
> then decremented so the same check hits again and because there is no
check
> whether the NI mode is already set, the program loops.
>   The attached patch fixes this problem by adding this additional
check,
> whether the NI mode is already set.
>   Now the program prints the message once and then continues, finally
starting
> to play the file.

Does it happen also with pre7? there were some big demuxer changes about
a week ago, and i want to be sure thet the problem was not caused by
those changes before applying a fix.

Ciao,
 Roberto




More information about the MPlayer-dev-eng mailing list