[FFmpeg-cvslog] r9763 - in trunk/libavformat: matroskadec.c utils.c vocdec.c vocenc.c
takis
subversion
Thu Jul 19 17:38:33 CEST 2007
Author: takis
Date: Thu Jul 19 17:38:33 2007
New Revision: 9763
Log:
Replace all occurrances of AVERROR_NOTSUPP with AVERROR(ENOSYS).
Modified:
trunk/libavformat/matroskadec.c
trunk/libavformat/utils.c
trunk/libavformat/vocdec.c
trunk/libavformat/vocenc.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c (original)
+++ trunk/libavformat/matroskadec.c Thu Jul 19 17:38:33 2007
@@ -547,7 +547,7 @@ ebml_read_master (MatroskaDemuxContext *
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 */
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Thu Jul 19 17:38:33 2007
@@ -2000,14 +2000,14 @@ int av_find_stream_info(AVFormatContext
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);
}
Modified: trunk/libavformat/vocdec.c
==============================================================================
--- trunk/libavformat/vocdec.c (original)
+++ trunk/libavformat/vocdec.c Thu Jul 19 17:38:33 2007
@@ -47,7 +47,7 @@ static int voc_read_header(AVFormatConte
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);
Modified: trunk/libavformat/vocenc.c
==============================================================================
--- trunk/libavformat/vocenc.c (original)
+++ trunk/libavformat/vocenc.c Thu Jul 19 17:38:33 2007
@@ -34,7 +34,7 @@ static int voc_write_header(AVFormatCont
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);
More information about the ffmpeg-cvslog
mailing list