diff asfdec.c @ 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 9145790397e6
children 8d9ce632a3e2
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) {