changeset 4645:a9a2c60d0e84 libavformat

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.
author melanson
date Wed, 04 Mar 2009 05:40:53 +0000
parents 2962d395431b
children 774c340b9e41
files wc3movie.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */