FLV demuxer: return AVERROR_EOF upon detection of end of file.

Originally committed as revision 17457 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Peter Ross 2009-02-19 12:19:55 +00:00
parent 1e04bbeede
commit 0e9602ef93
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
dts |= get_byte(s->pb) << 24; dts |= get_byte(s->pb) << 24;
// av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts); // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts);
if (url_feof(s->pb)) if (url_feof(s->pb))
return AVERROR(EIO); return AVERROR_EOF;
url_fskip(s->pb, 3); /* stream id, always 0 */ url_fskip(s->pb, 3); /* stream id, always 0 */
flags = 0; flags = 0;