commit | ba29bb20a18aa98813ce42f99cff4910a153e87c | [log] [tgz] |
---|---|---|
author | Marco Nelissen <marcone@google.com> | Thu Oct 29 14:10:48 2015 -0700 |
committer | Marco Nelissen <marcone@google.com> | Thu Oct 29 14:19:19 2015 -0700 |
tree | 308f342e3dcf57ef25adda7fff61afff8597e042 | |
parent | 60cf8e892519b84bd5aa2c7ef8027304382ac4b0 [diff] |
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