diff options
author | Peter Ross <pross@xvid.org> | 2009-02-19 12:19:55 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2009-02-19 12:19:55 +0000 |
commit | 0e9602ef93255476d8f05b2a4f4ab70fdf1f22ff (patch) | |
tree | 63089b001a4d3210fe566dad5b43fa56b3f3b169 | |
parent | 1e04bbeede593ac0b84c684838cb4e76e294ae5b (diff) | |
download | ffmpeg-0e9602ef93255476d8f05b2a4f4ab70fdf1f22ff.tar.gz |
FLV demuxer: return AVERROR_EOF upon detection of end of file.
Originally committed as revision 17457 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 7f3184b9be..06ae33aaec 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -320,7 +320,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) dts |= get_byte(s->pb) << 24; // av_log(s, AV_LOG_DEBUG, "type:%d, size:%d, dts:%d\n", type, size, dts); if (url_feof(s->pb)) - return AVERROR(EIO); + return AVERROR_EOF; url_fskip(s->pb, 3); /* stream id, always 0 */ flags = 0; |