Fix heap corruption in SPS

This commit is contained in:
Iwan Timmer
2015-08-12 17:13:26 +02:00
parent f1926b9980
commit 4fc96f2461
3 changed files with 20 additions and 14 deletions

View File

@@ -176,7 +176,8 @@ static int decoder_renderer_submit_decode_unit(PDECODE_UNIT decodeUnit) {
first_packet = 0;
}
PLENTRY entry = gs_sps_fix(decodeUnit->bufferList, GS_SPS_BITSTREAM_FIXUP);
PLENTRY entry = gs_sps_fix(&decodeUnit->bufferList, GS_SPS_BITSTREAM_FIXUP);
decodeUnit->bufferList = entry;
while (entry != NULL) {
memcpy(dest, entry->data, entry->length);
buf->nFilledLen += entry->length;