summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-02-19 21:01:45 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-02-19 21:01:45 +0000
commit9ebeea82f0b755108d09f0ac1fa9ac67a03891ed (patch)
tree9eb014e9dd4b35950a3ed6df619fc5df125757dc /libavformat/matroskadec.c
parentdc405cc1c032781273a5dffa0ecf3e4d789985b6 (diff)
matroskadec: return AVERROR_EOF upon detection of end of file
Originally committed as revision 17460 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
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);
}