---
 libavformat/aiffdec.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 6243bcb..e8177bf 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -252,13 +252,13 @@ static int aiff_read_header(AVFormatContext *s)
                 goto got_sound;
             if (!pb->seekable) {
                 av_log(s, AV_LOG_ERROR, "file is not seekable\n");
-                return -1;
+                return AVERROR(ENOSYS);
             }
             avio_skip(pb, size - 8);
             break;
         case MKTAG('w', 'a', 'v', 'e'):
             if ((uint64_t)size > (1<<30))
-                return -1;
+                return AVERROR_INVALIDDATA;
             st->codec->extradata = av_mallocz(size + 
FF_INPUT_BUFFER_PADDING_SIZE);
             if (!st->codec->extradata)
                 return AVERROR(ENOMEM);
@@ -275,7 +275,7 @@ static int aiff_read_header(AVFormatContext *s)
 got_sound:
     if (!st->codec->block_align) {
         av_log(s, AV_LOG_ERROR, "could not find COMM tag or invalid 
block_align value\n");
-        return -1;
+        return AVERROR_INVALIDDATA;
     }
 
     /* Now positioned, get the sound data start and end */
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to