Browse Source

Reemove remaining uses of deprecated AVERROR_NOTSUPP.

tags/n0.8
Anton Khirnov 14 years ago
parent
commit
f5b386afab
5 changed files with 7 additions and 7 deletions
  1. +1
    -1
      libavformat/applehttpproto.c
  2. +1
    -1
      libavformat/assdec.c
  3. +1
    -1
      libavformat/jvdec.c
  4. +3
    -3
      libavformat/rtpdec_qt.c
  5. +1
    -1
      libavformat/wtv.c

+ 1
- 1
libavformat/applehttpproto.c View File

@@ -181,7 +181,7 @@ static int applehttp_open(URLContext *h, const char *uri, int flags)
const char *nested_url; const char *nested_url;


if (flags & (URL_WRONLY | URL_RDWR)) if (flags & (URL_WRONLY | URL_RDWR))
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);


s = av_mallocz(sizeof(AppleHTTPContext)); s = av_mallocz(sizeof(AppleHTTPContext));
if (!s) if (!s)


+ 1
- 1
libavformat/assdec.c View File

@@ -168,7 +168,7 @@ static int read_seek2(AVFormatContext *s, int stream_index,
ASSContext *ass = s->priv_data; ASSContext *ass = s->priv_data;


if (flags & AVSEEK_FLAG_BYTE) { if (flags & AVSEEK_FLAG_BYTE) {
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
} else if (flags & AVSEEK_FLAG_FRAME) { } else if (flags & AVSEEK_FLAG_FRAME) {
if (ts < 0 || ts >= ass->event_count) if (ts < 0 || ts >= ass->event_count)
return AVERROR(ERANGE); return AVERROR(ERANGE);


+ 1
- 1
libavformat/jvdec.c View File

@@ -192,7 +192,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
int i; int i;


if (flags & (AVSEEK_FLAG_BYTE|AVSEEK_FLAG_FRAME)) if (flags & (AVSEEK_FLAG_BYTE|AVSEEK_FLAG_FRAME))
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);


switch(stream_index) { switch(stream_index) {
case 0: case 0:


+ 3
- 3
libavformat/rtpdec_qt.c View File

@@ -98,7 +98,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,
if (!is_start || !is_finish) { if (!is_start || !is_finish) {
av_log_missing_feature(s, "RTP-X-QT with payload description " av_log_missing_feature(s, "RTP-X-QT with payload description "
"split over several packets", 1); "split over several packets", 1);
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
} }
skip_bits(&gb, 12); // reserved skip_bits(&gb, 12); // reserved
data_len = get_bits(&gb, 16); data_len = get_bits(&gb, 16);
@@ -161,7 +161,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,


if (has_packet_info) { if (has_packet_info) {
av_log_missing_feature(s, "RTP-X-QT with packet specific info", 1); av_log_missing_feature(s, "RTP-X-QT with packet specific info", 1);
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
} }


alen = len - avio_tell(&pb); alen = len - avio_tell(&pb);
@@ -224,7 +224,7 @@ static int qt_rtp_parse_packet(AVFormatContext *s, PayloadContext *qt,


default: /* unimplemented */ default: /* unimplemented */
av_log_missing_feature(NULL, "RTP-X-QT with packing scheme 2", 1); av_log_missing_feature(NULL, "RTP-X-QT with packing scheme 2", 1);
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
} }
} }




+ 1
- 1
libavformat/wtv.c View File

@@ -1061,7 +1061,7 @@ static int read_seek(AVFormatContext *s, int stream_index,
int i; int i;


if ((flags & AVSEEK_FLAG_FRAME) || (flags & AVSEEK_FLAG_BYTE)) if ((flags & AVSEEK_FLAG_FRAME) || (flags & AVSEEK_FLAG_BYTE))
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);


/* timestamp adjustment is required because wtv->pts values are absolute, /* timestamp adjustment is required because wtv->pts values are absolute,
* whereas AVIndexEntry->timestamp values are relative to epoch. */ * whereas AVIndexEntry->timestamp values are relative to epoch. */


Loading…
Cancel
Save