Simply emulation byte filtering
The original algorithm was incorrectly including the nal_unit_type in the returned RBSP when there were no emulation bytes to filter. This version is slower because it examines every byte individually but it's simpler to understand. Add a test case for H264 stream parsing that demonstrates the issue.
Showing
3 changed files
with
122 additions
and
81 deletions
test/h264-stream_test.js
0 → 100644
-
Please register or sign in to post a comment