mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
4c4ef3db4b
commit
d79fc8403b
|
@ -141,7 +141,7 @@ static int64_t rtmp_read_seek(URLContext *s, int stream_index,
|
||||||
RTMP *r = s->priv_data;
|
RTMP *r = s->priv_data;
|
||||||
|
|
||||||
if (flags & AVSEEK_FLAG_BYTE)
|
if (flags & AVSEEK_FLAG_BYTE)
|
||||||
return AVERROR_NOTSUPP;
|
return AVERROR(ENOSYS);
|
||||||
|
|
||||||
/* seeks are in milliseconds */
|
/* seeks are in milliseconds */
|
||||||
timestamp = av_rescale(timestamp, AV_TIME_BASE, 1000);
|
timestamp = av_rescale(timestamp, AV_TIME_BASE, 1000);
|
||||||
|
|
Loading…
Reference in New Issue