Commit 081f3dc4 authored by takis's avatar takis

Replace all occurrances of AVERROR_NOTSUPP with AVERROR(ENOSYS).


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9763 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3492fec2
...@@ -547,7 +547,7 @@ ebml_read_master (MatroskaDemuxContext *matroska, ...@@ -547,7 +547,7 @@ ebml_read_master (MatroskaDemuxContext *matroska,
if (matroska->num_levels >= EBML_MAX_DEPTH) { if (matroska->num_levels >= EBML_MAX_DEPTH) {
av_log(matroska->ctx, AV_LOG_ERROR, av_log(matroska->ctx, AV_LOG_ERROR,
"File moves beyond max. allowed depth (%d)\n", EBML_MAX_DEPTH); "File moves beyond max. allowed depth (%d)\n", EBML_MAX_DEPTH);
return AVERROR_NOTSUPP; return AVERROR(ENOSYS);
} }
/* remember level */ /* remember level */
......
...@@ -2000,14 +2000,14 @@ int av_find_stream_info(AVFormatContext *ic) ...@@ -2000,14 +2000,14 @@ int av_find_stream_info(AVFormatContext *ic)
int av_read_play(AVFormatContext *s) int av_read_play(AVFormatContext *s)
{ {
if (!s->iformat->read_play) if (!s->iformat->read_play)
return AVERROR_NOTSUPP; return AVERROR(ENOSYS);
return s->iformat->read_play(s); return s->iformat->read_play(s);
} }
int av_read_pause(AVFormatContext *s) int av_read_pause(AVFormatContext *s)
{ {
if (!s->iformat->read_pause) if (!s->iformat->read_pause)
return AVERROR_NOTSUPP; return AVERROR(ENOSYS);
return s->iformat->read_pause(s); return s->iformat->read_pause(s);
} }
......
...@@ -47,7 +47,7 @@ static int voc_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -47,7 +47,7 @@ static int voc_read_header(AVFormatContext *s, AVFormatParameters *ap)
header_size = get_le16(pb) - 22; header_size = get_le16(pb) - 22;
if (header_size != 4) { if (header_size != 4) {
av_log(s, AV_LOG_ERROR, "unknown header size: %d\n", header_size); av_log(s, AV_LOG_ERROR, "unknown header size: %d\n", header_size);
return AVERROR_NOTSUPP; return AVERROR(ENOSYS);
} }
url_fskip(pb, header_size); url_fskip(pb, header_size);
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
......
...@@ -34,7 +34,7 @@ static int voc_write_header(AVFormatContext *s) ...@@ -34,7 +34,7 @@ static int voc_write_header(AVFormatContext *s)
if (s->nb_streams != 1 if (s->nb_streams != 1
|| s->streams[0]->codec->codec_type != CODEC_TYPE_AUDIO) || 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_buffer(pb, voc_magic, sizeof(voc_magic) - 1);
put_le16(pb, header_size); put_le16(pb, header_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment