video decoder optimization