General approach to parsing chunks in VC-1 AP