aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2007-10-24 21:44:20 +0000
committerAurelien Jacobs <aurel@gnuage.org>2007-10-24 21:44:20 +0000
commit446263879b96f03cffe486e97b14b4e28a61f6ab (patch)
tree38d0638aa5011ca1c57336dc20c9425542c646f8
parente7583962687adf44b4e6b5556a296f37485c7c8b (diff)
downloadffmpeg-446263879b96f03cffe486e97b14b4e28a61f6ab.tar.gz
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
-rw-r--r--libavformat/electronicarts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/electronicarts.c b/libavformat/electronicarts.c
index 08c2840656..b17f2825d8 100644
--- a/libavformat/electronicarts.c
+++ b/libavformat/electronicarts.c
@@ -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;