Set codec dimensions in extradata parsing