changeset 4879:42e183e59515 libavformat

Replace AVERROR(EIO) by AVERROR_EOF on end-of-file. See mailinglist thread "[PATCH] RTSP-MS 15/15: move packet_time_start zero value assignment in asf.c".
author rbultje
date Thu, 16 Apr 2009 00:41:31 +0000
parents 5f8639313523
children 1c4ca5c32f0f
files asfdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Wed Apr 15 20:18:02 2009 +0000
+++ b/asfdec.c	Thu Apr 16 00:41:31 2009 +0000
@@ -702,7 +702,7 @@
     ASFStream *asf_st = 0;
     for (;;) {
         if(url_feof(pb))
-            return AVERROR(EIO);
+            return AVERROR_EOF;
         if (asf->packet_size_left < FRAME_HEADER_SIZE
             || asf->packet_segments < 1) {
             //asf->packet_size_left <= asf->packet_padsize) {