Commit 3c548f94 authored by hpi1's avatar hpi1

Split bd_read() at clip boundary.

Data from two clips won't be mixed.
parent 517acb88
......@@ -1017,6 +1017,12 @@ int bd_read(BLURAY *bd, unsigned char *buf, int len)
return 0;
}
if (clip_pkt >= st->clip->end_pkt) {
// split read()'s at clip boundary
if (out_len) {
return out_len;
}
st->clip = nav_next_clip(bd->title, st->clip);
if (st->clip == NULL) {
DEBUG(DBG_BLURAY|DBG_STREAM, "End of title (%p)\n", bd);
......
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