Commit 44626387 authored by Aurelien Jacobs's avatar Aurelien Jacobs

avoid infinite loop at the end of files which are not properly terminated

Originally committed as revision 10857 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e7583962
......@@ -335,6 +335,7 @@ static int ea_read_packet(AVFormatContext *s,
break;
/* ending tag */
case 0:
case SCEl_TAG:
ret = AVERROR(EIO);
packet_read = 1;
......
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