OSDN Git Service

avoid infinite loop at the end of files which are not properly terminated
authorAurelien Jacobs <aurel@gnuage.org>
Wed, 24 Oct 2007 21:44:20 +0000 (21:44 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Wed, 24 Oct 2007 21:44:20 +0000 (21:44 +0000)
Originally committed as revision 10857 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/electronicarts.c

index 08c2840..b17f282 100644 (file)
@@ -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;