lavc/avuienc: fix mem leak in case of init failure