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
1 file changed