ffmpeg: fix corruption in earlier memory copy removal