Commit 06ccd474 authored by hpi1's avatar hpi1

bd_read(): return 0 after EOF

parent 09a7799d
......@@ -651,7 +651,7 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
if (bd->clip == NULL) {
// We previously reached the last clip. Nothing
// else to read.
return -1;
return 0;
}
if (clip_pkt >= bd->clip->end_pkt) {
bd->clip = nav_next_clip(bd->title, bd->clip);
......
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