[FFmpeg-cvslog] r17802 - trunk/libavformat/wc3movie.c
melanson
subversion
Wed Mar 4 06:40:54 CET 2009
Author: melanson
Date: Wed Mar 4 06:40:53 2009
New Revision: 17802
Log:
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.
Modified:
trunk/libavformat/wc3movie.c
Modified: trunk/libavformat/wc3movie.c
==============================================================================
--- trunk/libavformat/wc3movie.c Wed Mar 4 06:24:59 2009 (r17801)
+++ trunk/libavformat/wc3movie.c Wed Mar 4 06:40:53 2009 (r17802)
@@ -293,7 +293,7 @@ static int wc3_read_packet(AVFormatConte
/* 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 */
More information about the ffmpeg-cvslog
mailing list