[FFmpeg-cvslog] assdec: return EOF instead of EIO.

Nicolas George git at videolan.org
Thu Aug 2 14:51:54 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Thu Aug  2 11:21:20 2012 +0200| [93d428953c91d68e8e6e98f8fda379d204507bb6] | committer: Nicolas George

assdec: return EOF instead of EIO.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=93d428953c91d68e8e6e98f8fda379d204507bb6
---

 libavformat/assdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/assdec.c b/libavformat/assdec.c
index 6295888..6229857 100644
--- a/libavformat/assdec.c
+++ b/libavformat/assdec.c
@@ -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 ];
 



More information about the ffmpeg-cvslog mailing list