diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-02 07:27:08 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-10-02 07:27:08 +0000 |
commit | 3fcb5113c6933fd5db55917ecdd54ee6556b0a93 (patch) | |
tree | 33f51f06fbc7ad0fcf9d0e25b53eb8947cc0ec14 /libavformat | |
parent | e581b6288f7c8c356593842c172cf867ca4177d6 (diff) | |
download | ffmpeg-3fcb5113c6933fd5db55917ecdd54ee6556b0a93.tar.gz |
wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of
the file is reached normally, without any error.
Originally committed as revision 20143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/wav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wav.c b/libavformat/wav.c index e1ad08ea9a..1ac1e64517 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -256,7 +256,7 @@ static int wav_read_packet(AVFormatContext *s, else left = find_tag(s->pb, MKTAG('d', 'a', 't', 'a')); if (left < 0) - return AVERROR(EIO); + return AVERROR_EOF; wav->data_end= url_ftell(s->pb) + left; } |