Commit 722d28db authored by Marton Balint's avatar Marton Balint

avformat/file: use proper return value in file_close

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 34aee50a
......@@ -266,7 +266,8 @@ static int64_t file_seek(URLContext *h, int64_t pos, int whence)
static int file_close(URLContext *h)
{
FileContext *c = h->priv_data;
return close(c->fd);
int ret = close(c->fd);
return (ret == -1) ? AVERROR(errno) : 0;
}
static int file_open_dir(URLContext *h)
......
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