# HG changeset patch # User melanson # Date 1236145253 0 # Node ID a9a2c60d0e84311affbc9cac8f16dd1949e620a3 # Parent 2962d395431b1ae758775b419506159b0a316fbc Fix a condition that causes an infinite loop, but only when compiled with gcc 4.2.4 on x86_32. Thanks to Vitor for hunting this down. diff -r 2962d395431b -r a9a2c60d0e84 wc3movie.c --- a/wc3movie.c Wed Mar 04 00:57:37 2009 +0000 +++ b/wc3movie.c Wed Mar 04 05:40:53 2009 +0000 @@ -293,7 +293,7 @@ /* get the next chunk preamble */ if ((ret = get_buffer(pb, preamble, WC3_PREAMBLE_SIZE)) != WC3_PREAMBLE_SIZE) - ret = AVERROR(EIO); + return AVERROR(EIO); fourcc_tag = AV_RL32(&preamble[0]); /* chunk sizes are 16-bit aligned */