Skip to content

Commit

Permalink
fix rbspreader pos logic when bytes consumed is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
amaha877 committed Sep 27, 2024
1 parent 96c9d0e commit 4a0a19d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/h264/H26xNal.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ class RbspReader

inline void Skip(size_t num)
{
//Don't update pos if we have not consumed any bytes
if (!num) return;

DWORD len = 0;
DWORD z = zeros;

Expand Down

0 comments on commit 4a0a19d

Please sign in to comment.