changeset 5259:1c4c83a0fd96 libavformat

wav demuxer: return AVERROR_EOF instead of AVERROR(EIO) when the end of the file is reached normally, without any error.
author reimar
date Fri, 02 Oct 2009 07:27:08 +0000
parents 98cdc18246fe
children 745917a7ac1d
files wav.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wav.c	Fri Oct 02 07:22:44 2009 +0000
+++ b/wav.c	Fri Oct 02 07:27:08 2009 +0000
@@ -256,7 +256,7 @@
         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;
     }