Commit fde9013a authored by Derek Buitenhuis's avatar Derek Buitenhuis

mpegtsenc: Don't pass NULL to memcpy

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 3b3501f7
......@@ -277,6 +277,10 @@ static void putstr8(uint8_t **q_ptr, const char *str, int write_len)
len = strlen(str);
if (write_len)
*q++ = len;
if (!str) {
*q_ptr = q;
return;
}
memcpy(q, str, len);
q += len;
*q_ptr = q;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment