changeset 2276:3c1e2d519277 libavformat

Replace all occurrences of AVERROR_NOTSUPP with AVERROR(ENOSYS).
author takis
date Thu, 19 Jul 2007 15:38:33 +0000
parents 7192ab16a21a
children 456e19bc6cf7
files matroskadec.c utils.c vocdec.c vocenc.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/matroskadec.c	Thu Jul 19 15:37:44 2007 +0000
+++ b/matroskadec.c	Thu Jul 19 15:38:33 2007 +0000
@@ -547,7 +547,7 @@
     if (matroska->num_levels >= EBML_MAX_DEPTH) {
         av_log(matroska->ctx, AV_LOG_ERROR,
                "File moves beyond max. allowed depth (%d)\n", EBML_MAX_DEPTH);
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
     }
 
     /* remember level */
--- a/utils.c	Thu Jul 19 15:37:44 2007 +0000
+++ b/utils.c	Thu Jul 19 15:38:33 2007 +0000
@@ -2000,14 +2000,14 @@
 int av_read_play(AVFormatContext *s)
 {
     if (!s->iformat->read_play)
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
     return s->iformat->read_play(s);
 }
 
 int av_read_pause(AVFormatContext *s)
 {
     if (!s->iformat->read_pause)
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
     return s->iformat->read_pause(s);
 }
 
--- a/vocdec.c	Thu Jul 19 15:37:44 2007 +0000
+++ b/vocdec.c	Thu Jul 19 15:38:33 2007 +0000
@@ -47,7 +47,7 @@
     header_size = get_le16(pb) - 22;
     if (header_size != 4) {
         av_log(s, AV_LOG_ERROR, "unknown header size: %d\n", header_size);
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
     }
     url_fskip(pb, header_size);
     st = av_new_stream(s, 0);
--- a/vocenc.c	Thu Jul 19 15:37:44 2007 +0000
+++ b/vocenc.c	Thu Jul 19 15:38:33 2007 +0000
@@ -34,7 +34,7 @@
 
     if (s->nb_streams != 1
         || s->streams[0]->codec->codec_type != CODEC_TYPE_AUDIO)
-        return AVERROR_NOTSUPP;
+        return AVERROR(ENOSYS);
 
     put_buffer(pb, voc_magic, sizeof(voc_magic) - 1);
     put_le16(pb, header_size);