assdec: return EOF instead of EIO.
authorNicolas George <nicolas.george@normalesup.org>
Thu, 2 Aug 2012 09:21:20 +0000 (11:21 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 2 Aug 2012 12:39:45 +0000 (14:39 +0200)
libavformat/assdec.c

index 6295888..6229857 100644 (file)
@@ -147,7 +147,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
     uint8_t *p, *end;
 
     if(ass->event_index >= ass->event_count)
-        return AVERROR(EIO);
+        return AVERROR_EOF;
 
     p= ass->event[ ass->event_index ];