h264: cap max has_b_frames at MAX_DELAYED_PIC_COUNT - 1.