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".

Originally committed as revision 18531 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Ronald S. Bultje 16 years ago
parent 7e030c4739
commit 799a0722fc
  1. 2
      libavformat/asfdec.c

@ -702,7 +702,7 @@ int ff_asf_parse_packet(AVFormatContext *s, ByteIOContext *pb, AVPacket *pkt)
ASFStream *asf_st = 0; ASFStream *asf_st = 0;
for (;;) { for (;;) {
if(url_feof(pb)) if(url_feof(pb))
return AVERROR(EIO); return AVERROR_EOF;
if (asf->packet_size_left < FRAME_HEADER_SIZE if (asf->packet_size_left < FRAME_HEADER_SIZE
|| asf->packet_segments < 1) { || asf->packet_segments < 1) {
//asf->packet_size_left <= asf->packet_padsize) { //asf->packet_size_left <= asf->packet_padsize) {

Loading…
Cancel
Save