Commit 7e421f7c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

interlacing: fix overlapping memory copy

(cherry picked from commit 2f1737e730e6e8844a93a32b236e36b16eb9bf33)
parent eb3c35c6
...@@ -103,7 +103,7 @@ static void DeinterlaceRemove(vout_thread_t *vout) ...@@ -103,7 +103,7 @@ static void DeinterlaceRemove(vout_thread_t *vout)
/* */ /* */
strcpy(&start[0], &start[strlen("deinterlace")]); strcpy(&start[0], &start[strlen("deinterlace")]);
if (*start == ':') if (*start == ':')
strcpy(&start[0], &start[1]); memmove(start, start + 1, strlen(start) /* + 1 - 1 */);
var_SetString(vout, "video-filter", filter); var_SetString(vout, "video-filter", filter);
free(filter); free(filter);
......
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