Change the CODEC struct to typedef