Commit 01c1d49b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

avio: fix busy loop on EOF (fixes #11076)

parent 5b809589
...@@ -307,8 +307,10 @@ static ssize_t Read(access_t *access, uint8_t *data, size_t size) ...@@ -307,8 +307,10 @@ static ssize_t Read(access_t *access, uint8_t *data, size_t size)
int r = avio_read(access->p_sys->context, data, size); int r = avio_read(access->p_sys->context, data, size);
if (r > 0) if (r > 0)
access->info.i_pos += r; access->info.i_pos += r;
else else {
access->info.b_eof = true; access->info.b_eof = true;
r = 0;
}
return r; return r;
} }
......
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