Reemove remaining uses of deprecated AVERROR_NOTSUPP.

This commit is contained in:
Anton Khirnov
2011-04-06 08:16:06 +02:00
parent 56a1000917
commit f5b386afab
5 changed files with 7 additions and 7 deletions

View File

@ -168,7 +168,7 @@ static int read_seek2(AVFormatContext *s, int stream_index,
ASSContext *ass = s->priv_data;
if (flags & AVSEEK_FLAG_BYTE) {
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
} else if (flags & AVSEEK_FLAG_FRAME) {
if (ts < 0 || ts >= ass->event_count)
return AVERROR(ERANGE);