ffmpeg: rework update script

Signed-off-by: Timothy Gu <timothygu99@gmail.com>