h264enc: bugfix, do not lost flags from codedbuffer

we missed coded buffer flags in code refacting