Commit b0cb0fc0 authored by melanson's avatar melanson

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17802 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 80e80203
......@@ -293,7 +293,7 @@ static int wc3_read_packet(AVFormatContext *s,
/* 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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment