h264: Refactor decode_nal_units