[FFmpeg-cvslog] r18552 - trunk/libavformat/asfdec.c
rbultje
subversion
Fri Apr 17 16:05:57 CEST 2009
Author: rbultje
Date: Fri Apr 17 16:05:57 2009
New Revision: 18552
Log:
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).
Modified:
trunk/libavformat/asfdec.c
Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c Fri Apr 17 15:59:07 2009 (r18551)
+++ trunk/libavformat/asfdec.c Fri Apr 17 16:05:57 2009 (r18552)
@@ -715,7 +715,7 @@ int ff_asf_parse_packet(AVFormatContext
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) {
More information about the ffmpeg-cvslog
mailing list