]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Change another AVERROR(EIO) inot AVERROR_EOF, because it really signals EOF,
authorrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 17 Apr 2009 14:05:57 +0000 (14:05 +0000)
committerrbultje <rbultje@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 17 Apr 2009 14:05:57 +0000 (14:05 +0000)
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).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18552 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/asfdec.c

index 3423987db64ef33a412a6630c37f65eea2ddc35b..b295e55c01e7a130c7caf1e00dba7067a7fea319 100644 (file)
@@ -715,7 +715,7 @@ int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
             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) {