Commit eb19d89d authored by Michael Niedermayer's avatar Michael Niedermayer

cache: check lseek() return

Fixes CID717496
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ce739e66
......@@ -114,7 +114,9 @@ static int64_t cache_seek(URLContext *h, int64_t pos, int whence)
c->pos= pos;
return pos;
}else{
lseek(c->fd, c->pos, SEEK_SET);
if(lseek(c->fd, c->pos, SEEK_SET) < 0) {
av_log(h, AV_LOG_ERROR, "Failure to seek in cache\n");
}
return AVERROR(EPIPE);
}
}
......
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