diff options
author | Marco Nelissen <marcone@google.com> | 2015-10-29 14:10:48 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-07 01:56:44 -0800 |
commit | d831e2ea5e74c06bd6fb9e8b61d710f466a507cc (patch) | |
tree | 914cdb3838cff3fdb23a1a48aa0dc5373c90cbad /include/soundtrigger | |
parent | 5e05fbd57a5372c17c10c34bc130511dab8451ca (diff) | |
download | frameworks_av-d831e2ea5e74c06bd6fb9e8b61d710f466a507cc.zip frameworks_av-d831e2ea5e74c06bd6fb9e8b61d710f466a507cc.tar.gz frameworks_av-d831e2ea5e74c06bd6fb9e8b61d710f466a507cc.tar.bz2 |
MatroskaExtractor: don't use new buffer unless necessary
When the NAL size length is 4 bytes, we can store the start code in the space
occupied by the NAL size length and avoid allocating a new buffer and copying
the data into it.
Also fix potential memory leak.
Change-Id: I29dd72a0616dfae66ddd7b7f9478678e356df440
Diffstat (limited to 'include/soundtrigger')
0 files changed, 0 insertions, 0 deletions