Prefer AVERROR(ENOSYS) over AVERROR_NOTSUPP.

AVERROR_NOTSUPP is (maybe) going to be deprecated.

Originally committed as revision 22903 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Stefano Sabatini 2010-04-18 19:09:22 +00:00
parent 4c4ef3db4b
commit d79fc8403b

View File

@ -141,7 +141,7 @@ static int64_t rtmp_read_seek(URLContext *s, int stream_index,
RTMP *r = s->priv_data;
if (flags & AVSEEK_FLAG_BYTE)
return AVERROR_NOTSUPP;
return AVERROR(ENOSYS);
/* seeks are in milliseconds */
timestamp = av_rescale(timestamp, AV_TIME_BASE, 1000);