From 9ebeea82f0b755108d09f0ac1fa9ac67a03891ed Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Thu, 19 Feb 2009 21:01:45 +0000 Subject: [PATCH] matroskadec: return AVERROR_EOF upon detection of end of file Originally committed as revision 17460 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/matroskadec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 4ba351456f..2f2d4447f9 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -1761,7 +1761,7 @@ static int matroska_read_packet(AVFormatContext *s, AVPacket *pkt) while (matroska_deliver_packet(matroska, pkt)) { if (matroska->done) - return AVERROR(EIO); + return AVERROR_EOF; matroska_parse_cluster(matroska); }