Fix many bugs in the initial code

This commit is contained in:
Cameron Gutman
2014-01-19 01:20:54 -05:00
parent 2e971e102a
commit 979a439504
3 changed files with 14 additions and 5 deletions

View File

@@ -178,6 +178,7 @@ void processRtpPayload(PNV_VIDEO_PACKET videoPacket, int length) {
if (decodingAvc) {
PLENTRY entry = (PLENTRY) malloc(sizeof(*entry));
if (entry != NULL) {
entry->next = NULL;
entry->length = currentPos.offset - start;
entry->data = (char*) malloc(entry->length);
if (entry->data == NULL) {