changeset 4883:584d9fb31093 libavformat

Change another AVERROR(EIO) inot AVERROR_EOF, because it really signals EOF, not a stream error. This also fixes an infinite loop on EOS during ASF file playback, and Michael claims he "likes the patch" (ref: [PATCH] RTSP-MS 15/15: move packet_time_start zero value assignment in asf.c" mailinglist tread).
author rbultje
date Fri, 17 Apr 2009 14:05:57 +0000
parents 8d9ce632a3e2
children 4a03abe2c1a6
files asfdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/asfdec.c	Fri Apr 17 12:37:39 2009 +0000
+++ b/asfdec.c	Fri Apr 17 14:05:57 2009 +0000
@@ -715,7 +715,7 @@
             asf->packet_pos= url_ftell(pb);
             if (asf->data_object_size != (uint64_t)-1 &&
                 (asf->packet_pos - asf->data_object_offset >= asf->data_object_size))
-                return AVERROR(EIO); /* Do not exceed the size of the data object */
+                return AVERROR_EOF; /* Do not exceed the size of the data object */
             return 1;
         }
         if (asf->packet_time_start == 0) {