lavc: move encoding-related code from utils.c to a new file