Skip to content

Commit

Permalink
fix(HLSSampleAesDecrypter): return on find startcode error
Browse files Browse the repository at this point in the history
Signed-off-by: pingkai <pingkai010@gmail.com>
  • Loading branch information
pingkai committed Feb 3, 2020
1 parent fdbfd8f commit 9c5a187
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework/demuxer/sample_decrypt/HLSSampleAesDecrypter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ int HLSSampleAesDecrypter::decryptH264Video(uint8_t *buffer, int size)
dst[dst_pos++] = 0x01;
} else {
assert(0);
return size;
}

int nal_type = nal_unit[0] & 0x1F;
Expand Down

0 comments on commit 9c5a187

Please sign in to comment.