modifications to support non macroblock widthxheight aligned video dimensions. modifications to allow non auto gops.