You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
mpegtsenc: Don't pass NULL to memcpy
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user