Commit e8ef6c45 authored by cehoyos's avatar cehoyos

Do not set pos to an error value.

Patch by Howard Chu, hyc highlandsun com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22853 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8b68ccd0
......@@ -743,8 +743,13 @@ int64_t av_url_read_fseek(ByteIOContext *s, int stream_index,
return AVERROR(ENOSYS);
ret = s->read_seek(h, stream_index, timestamp, flags);
if(ret >= 0) {
int64_t pos;
s->buf_ptr = s->buf_end; // Flush buffer
s->pos = s->seek(h, 0, SEEK_CUR);
pos = s->seek(h, 0, SEEK_CUR);
if (pos >= 0)
s->pos = pos;
else if (pos != AVERROR(ENOSYS))
ret = pos;
}
return ret;
}
......
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