diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2009-04-17 14:05:57 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2009-04-17 14:05:57 +0000 |
commit | 1d0036b01f1860fdead35a6efcdc1d0beb4c3269 (patch) | |
tree | a9915b15bb5fa0b83d973858d0aa2ca631afaec4 /libavformat | |
parent | 72619760f07b27f28b18a6e85b733cc9428d3f1b (diff) | |
download | ffmpeg-1d0036b01f1860fdead35a6efcdc1d0beb4c3269.tar.gz |
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).
Originally committed as revision 18552 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/asfdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 3423987db6..b295e55c01 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -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) { |