Skip to content
Snippets Groups Projects
Commit 5651c5b8 authored by Boris Grozev's avatar Boris Grozev
Browse files

Fix a bug in calculating the VP8 Payload Descriptor size

parent d9d3a6cd
No related branches found
No related tags found
No related merge requests found
...@@ -283,7 +283,7 @@ public static int getSize(byte[] input, int offset) throws Exception ...@@ -283,7 +283,7 @@ public static int getSize(byte[] input, int offset) throws Exception
if((input[offset] & X_BIT) == 0) if((input[offset] & X_BIT) == 0)
return 1; return 1;
int size = 1; int size = 2;
if((input[offset+1] & I_BIT) != 0) if((input[offset+1] & I_BIT) != 0)
{ {
size++; size++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment