bitmovin / libdash

MPEG-DASH Access Library - Official ISO/IEC MPEG-DASH Reference Implementation
https://bitmovin.com/
589 stars 169 forks source link

Fixing BlockStream::BlockQueuePeekBytes #41

Open poncela opened 2 years ago

poncela commented 2 years ago

The BlockStream::BlockQueuePeekBytes function fails when the offset is bigger than first block length

also, when you have to read data from two or more blocks it calculating wrongly the destination offset.

This pull request is the proposal fix for this function.