comparison aiff.c @ 5255:6a23d76cc72c libavformat

Return special EOF checking for aiff and au demuxers, the check was at the wrong place, causing an empty packet to be read before EOF was detected and the eof detection is already now handled by av_get_packet anyway.
author reimar
date Fri, 02 Oct 2009 06:42:20 +0000
parents 33a244b7ca65
children 0a917464c1dc
comparison
equal deleted inserted replaced
5254:83cc2a571542 5255:6a23d76cc72c
420 AVPacket *pkt) 420 AVPacket *pkt)
421 { 421 {
422 AVStream *st = s->streams[0]; 422 AVStream *st = s->streams[0];
423 int res; 423 int res;
424 424
425 /* End of stream may be reached */
426 if (url_feof(s->pb))
427 return AVERROR(EIO);
428
429 /* Now for that packet */ 425 /* Now for that packet */
430 res = av_get_packet(s->pb, pkt, (MAX_SIZE / st->codec->block_align) * st->codec->block_align); 426 res = av_get_packet(s->pb, pkt, (MAX_SIZE / st->codec->block_align) * st->codec->block_align);
431 if (res < 0) 427 if (res < 0)
432 return res; 428 return res;
433 429