diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-19 21:01:45 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-19 21:01:45 +0000 |
commit | 9ebeea82f0b755108d09f0ac1fa9ac67a03891ed (patch) | |
tree | 9eb014e9dd4b35950a3ed6df619fc5df125757dc | |
parent | dc405cc1c032781273a5dffa0ecf3e4d789985b6 (diff) | |
download | ffmpeg-9ebeea82f0b755108d09f0ac1fa9ac67a03891ed.tar.gz |
matroskadec: return AVERROR_EOF upon detection of end of file
Originally committed as revision 17460 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/matroskadec.c | 2 |
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); } |