changeset 4542:241a66d33f49 libavformat

FLV demuxer: return AVERROR_EOF upon detection of end of file.
author pross
date Thu, 19 Feb 2009 12:19:55 +0000
parents a65e3b37f87e
children e7e7b9f7edf4
files flvdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Thu Feb 19 12:19:33 2009 +0000
+++ b/flvdec.c	Thu Feb 19 12:19:55 2009 +0000
@@ -320,7 +320,7 @@
     dts |= get_byte(s->pb) << 24;
 //    av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts);
     if (url_feof(s->pb))
-        return AVERROR(EIO);
+        return AVERROR_EOF;
     url_fskip(s->pb, 3); /* stream id, always 0 */
     flags = 0;